Skip to content

[2025秋季][T1-1-3] xu-zhengzhong#75

Open
xu-zhengzhong wants to merge 6 commits intoInfiniTensor:masterfrom
xu-zhengzhong:2025-autumn-xu-zhengzhong-T1-1-3
Open

[2025秋季][T1-1-3] xu-zhengzhong#75
xu-zhengzhong wants to merge 6 commits intoInfiniTensor:masterfrom
xu-zhengzhong:2025-autumn-xu-zhengzhong-T1-1-3

Conversation

@xu-zhengzhong
Copy link

pytest output:

============================= test session starts ==============================
platform linux -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0
rootdir: /data/home/xuzz/ntops
configfile: pyproject.toml
collected 1080 items

tests/test_abs.py ........                                               [  0%]
tests/test_addmm.py ..                                                   [  0%]
tests/test_add.py ........                                               [  1%]
tests/test_avg_pool2d.py FFssssFFssssFFssssFFFFssFFFFssFFFFss            [  5%]
tests/test_bitwise_and.py ................                               [  6%]
tests/test_bitwise_not.py ................                               [  7%]
tests/test_bitwise_or.py ................                                [  9%]
tests/test_bmm.py ..                                                     [  9%]
tests/test_clamp.py ........                                             [ 10%]
tests/test_conv2d.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 15%]
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF                [ 20%]
tests/test_cos.py ........                                               [ 21%]
tests/test_div.py .s..s..s..s..s..s..s..s.                               [ 23%]
tests/test_dropout.py ........                                           [ 24%]
tests/test_eq.py ........                                                [ 24%]
tests/test_exp.py ........                                               [ 25%]
tests/test_gelu.py .s.s.s.s.s.s.s.s                                      [ 27%]
tests/test_ge.py ........                                                [ 27%]
tests/test_gt.py ........                                                [ 28%]
tests/test_isinf.py ........                                             [ 29%]
tests/test_isnan.py ........                                             [ 30%]
tests/test_layer_norm.py ............................................... [ 34%]
.................................................                        [ 38%]
tests/test_le.py ........                                                [ 39%]
tests/test_lt.py ........                                                [ 40%]
tests/test_matmul.py ........                                            [ 41%]
tests/test_max_pool2d.py FFFFFFssssssssssssFFFFFFssssssssssssFFFFFFsssss [ 45%]
sssssssFFFFFFFFFFFFssssssFFFFFFFFFFFFssssssFFFFFFFFFFFFssssss            [ 51%]
tests/test_mm.py ..                                                      [ 51%]
tests/test_mul.py ........                                               [ 52%]
tests/test_neg.py ........                                               [ 52%]
tests/test_ne.py ........                                                [ 53%]
tests/test_pow.py ........                                               [ 54%]
tests/test_quantile.py ................................................. [ 58%]
...............................                                          [ 61%]
tests/test_relu.py ................                                      [ 63%]
tests/test_rms_norm.py ................................................. [ 67%]
...............                                                          [ 69%]
tests/test_rot90.py ................................                     [ 72%]
tests/test_rotary_position_embedding.py ................................ [ 75%]
........................................................................ [ 81%]
........................                                                 [ 83%]
tests/test_rsqrt.py ........                                             [ 84%]
tests/test_scaled_dot_product_attention.py ............................. [ 87%]
.................................................                        [ 91%]
tests/test_select_copy.py ........                                       [ 92%]
tests/test_sgn.py ................                                       [ 94%]
tests/test_sigmoid.py ........                                           [ 94%]
tests/test_signbit.py ........                                           [ 95%]
tests/test_sign.py ........                                              [ 96%]
tests/test_silu.py ........                                              [ 97%]
tests/test_sin.py ........                                               [ 97%]
tests/test_softmax.py ........                                           [ 98%]
tests/test_sub.py ........                                               [ 99%]
tests/test_tanh.py ........                                              [100%]

=================================== FAILURES ===================================
......
=============================== warnings summary ===============================
tests/test_isinf.py: 12 warnings
  /data/home/xuzz/.ninetoothed/d5232170d712b5c5cf03b23e93e9c67bd36d1cd03f9988bb1878088c6d626970.py:15: UserWarning: Logical operators 'and' and 'or' are deprecated for non-scalar tensors; please use '&' or '|' instead
    triton.language.store(ninetoothed_tensor_1317_pointers + (ninetoothed_tensor_1317_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87)[::,]) * ninetoothed_ninetoothed_tensor_1317_stride_0, pos_result or neg_result, mask=True & (ninetoothed_tensor_1317_index_0 < (ninetoothed_ninetoothed_tensor_1317_size_0 - (ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87 - 1) - 1 + ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87 - 1) // ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87 + 1) & (triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87)[::,] < ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87) & (ninetoothed_tensor_1317_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87)[::,] < ninetoothed_ninetoothed_tensor_1317_size_0) & (ninetoothed_tensor_1317_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_87)[::,] < ninetoothed_ninetoothed_tensor_1317_size_0))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/test_isinf.py: 12 warnings
  /data/home/xuzz/.ninetoothed/914a183bd2547b6259685e290467d1046a1495a28674984c7d087f554ce1a3fe.py:15: UserWarning: Logical operators 'and' and 'or' are deprecated for non-scalar tensors; please use '&' or '|' instead
    triton.language.store(ninetoothed_tensor_1325_pointers + ((ninetoothed_tensor_1325_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88)[::,]) // ninetoothed_ninetoothed_tensor_1325_size_1 * ninetoothed_ninetoothed_tensor_1325_stride_0 + (ninetoothed_tensor_1325_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88)[::,]) % ninetoothed_ninetoothed_tensor_1325_size_1 * ninetoothed_ninetoothed_tensor_1325_stride_1), pos_result or neg_result, mask=True & (ninetoothed_tensor_1325_index_0 < (ninetoothed_ninetoothed_tensor_1325_size_0 * ninetoothed_ninetoothed_tensor_1325_size_1 - (ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 - 1) - 1 + ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 - 1) // ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 + 1) & (triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88)[::,] < ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88) & (ninetoothed_tensor_1325_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88)[::,] < ninetoothed_ninetoothed_tensor_1325_size_0 * ninetoothed_ninetoothed_tensor_1325_size_1) & ((ninetoothed_tensor_1325_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88)[::,]) // ninetoothed_ninetoothed_tensor_1325_size_1 < ninetoothed_ninetoothed_tensor_1325_size_0) & ((ninetoothed_tensor_1325_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_88)[::,]) % ninetoothed_ninetoothed_tensor_1325_size_1 < ninetoothed_ninetoothed_tensor_1325_size_1))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/test_isinf.py: 12 warnings
  /data/home/xuzz/.ninetoothed/bedae9b120f8b67b7b0dce3dfc1ba52458206e8fd751674a5cad15bd09e02165.py:15: UserWarning: Logical operators 'and' and 'or' are deprecated for non-scalar tensors; please use '&' or '|' instead
    triton.language.store(ninetoothed_tensor_1333_pointers + ((ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,]) // (ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) * ninetoothed_ninetoothed_tensor_1333_stride_0 + (ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,]) % (ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) // ninetoothed_ninetoothed_tensor_1333_size_2 * ninetoothed_ninetoothed_tensor_1333_stride_1 + (ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,]) % (ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) % ninetoothed_ninetoothed_tensor_1333_size_2 * ninetoothed_ninetoothed_tensor_1333_stride_2), pos_result or neg_result, mask=True & (ninetoothed_tensor_1333_index_0 < (ninetoothed_ninetoothed_tensor_1333_size_0 * ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2 - (ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 - 1) - 1 + ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 - 1) // ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + 1) & (triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,] < ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89) & (ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,] < ninetoothed_ninetoothed_tensor_1333_size_0 * ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) & ((ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,]) // (ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) < ninetoothed_ninetoothed_tensor_1333_size_0) & ((ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,]) % (ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) // ninetoothed_ninetoothed_tensor_1333_size_2 < ninetoothed_ninetoothed_tensor_1333_size_1) & ((ninetoothed_tensor_1333_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_89)[::,]) % (ninetoothed_ninetoothed_tensor_1333_size_1 * ninetoothed_ninetoothed_tensor_1333_size_2) % ninetoothed_ninetoothed_tensor_1333_size_2 < ninetoothed_ninetoothed_tensor_1333_size_2))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/test_isinf.py: 12 warnings
  /data/home/xuzz/.ninetoothed/aedfe416e0f03fb45c7bce174c5e12356ec21e8bdf4252a536ad80b65af95127.py:15: UserWarning: Logical operators 'and' and 'or' are deprecated for non-scalar tensors; please use '&' or '|' instead
    triton.language.store(ninetoothed_tensor_1341_pointers + ((ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) // (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) * ninetoothed_ninetoothed_tensor_1341_stride_0 + (ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) % (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) // (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) * ninetoothed_ninetoothed_tensor_1341_stride_1 + (ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) % (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) % (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) // ninetoothed_ninetoothed_tensor_1341_size_3 * ninetoothed_ninetoothed_tensor_1341_stride_2 + (ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) % (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) % (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) % ninetoothed_ninetoothed_tensor_1341_size_3 * ninetoothed_ninetoothed_tensor_1341_stride_3), pos_result or neg_result, mask=True & (ninetoothed_tensor_1341_index_0 < (ninetoothed_ninetoothed_tensor_1341_size_0 * ninetoothed_ninetoothed_tensor_1341_size_1 * ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3 - (ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 - 1) - 1 + ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 - 1) // ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + 1) & (triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,] < ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90) & (ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,] < ninetoothed_ninetoothed_tensor_1341_size_0 * ninetoothed_ninetoothed_tensor_1341_size_1 * ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) & ((ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) // (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) < ninetoothed_ninetoothed_tensor_1341_size_0) & ((ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) % (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) // (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) < ninetoothed_ninetoothed_tensor_1341_size_1) & ((ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) % (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) % (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) // ninetoothed_ninetoothed_tensor_1341_size_3 < ninetoothed_ninetoothed_tensor_1341_size_2) & ((ninetoothed_tensor_1341_index_0 * ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90 + triton.language.arange(0, ninetoothed_meta_prefix_ninetoothed_BLOCK_SIZE_90)[::,]) % (ninetoothed_ninetoothed_tensor_1341_size_1 * (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3)) % (ninetoothed_ninetoothed_tensor_1341_size_2 * ninetoothed_ninetoothed_tensor_1341_size_3) % ninetoothed_ninetoothed_tensor_1341_size_3 < ninetoothed_ninetoothed_tensor_1341_size_3))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
......
==== 180 failed, 812 passed, 88 skipped, 48 warnings in 2742.49s (0:45:42) =====

Compatibility Notes :

  1. ResNet operators (avg_pool2d, conv2d, max_pool2d) depend on ninetoothed.Tensor.pad, which is not yet supported in the latest v0.23.0 release.
  2. Correct output for rot90 and quantile operators requires triton library version >= 3.4.0.

@xu-zhengzhong xu-zhengzhong changed the title 2025 autumn xu zhengzhong t1 1 3 [2025秋季][T1-1-3] xu-zhengzhong Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant