Skip to content

Add clamp operator#16

Merged
voltjia merged 2 commits intoInfiniTensor:masterfrom
stever178:develop-clamp
May 30, 2025
Merged

Add clamp operator#16
voltjia merged 2 commits intoInfiniTensor:masterfrom
stever178:develop-clamp

Conversation

@stever178
Copy link
Copy Markdown
Contributor

@stever178 stever178 commented May 10, 2025

pytest output:

=============================== test session starts ================================
platform linux -- Python 3.12.5, pytest-8.3.5, pluggy-1.5.0
rootdir: /home/lsj/projects/ntops
configfile: pyproject.toml
plugins: cov-6.1.1
collected 102 items

tests/test_abs.py ........                                                   [  7%]
tests/test_add.py ........                                                   [ 15%]
tests/test_addmm.py ..                                                       [ 17%]
tests/test_bmm.py ..                                                         [ 19%]
tests/test_clamp.py ........                                                 [ 27%]
tests/test_cos.py ........                                                   [ 35%]
tests/test_div.py ........                                                   [ 43%]
tests/test_exp.py ........                                                   [ 50%]
tests/test_gelu.py ........                                                  [ 58%]
tests/test_mm.py ..                                                          [ 60%]
tests/test_mul.py ........                                                   [ 68%]
tests/test_relu.py ........                                                  [ 76%]
tests/test_rsqrt.py ........                                                 [ 84%]
tests/test_sigmoid.py ........                                               [ 92%]
tests/test_sin.py ........                                                   [100%]

========================== 102 passed in 94.81s (0:01:34) ==========================

@stever178 stever178 marked this pull request as ready for review May 11, 2025 03:49
@voltjia
Copy link
Copy Markdown
Collaborator

voltjia commented May 30, 2025

pytest output:

============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.3.3, pluggy-1.5.0
rootdir: /home/huangjiacheng/ntops
configfile: pyproject.toml
plugins: cov-6.0.0
collected 238 items

tests/test_abs.py ........                                               [  3%]
tests/test_add.py ........                                               [  6%]
tests/test_addmm.py ..                                                   [  7%]
tests/test_bitwise_and.py ................                               [ 14%]
tests/test_bitwise_not.py ................                               [ 21%]
tests/test_bitwise_or.py ................                                [ 27%]
tests/test_bmm.py ..                                                     [ 28%]
tests/test_clamp.py ........                                             [ 31%]
tests/test_cos.py ........                                               [ 35%]
tests/test_div.py ........                                               [ 38%]
tests/test_eq.py ........                                                [ 42%]
tests/test_exp.py ........                                               [ 45%]
tests/test_ge.py ........                                                [ 48%]
tests/test_gelu.py ........                                              [ 52%]
tests/test_gt.py ........                                                [ 55%]
tests/test_isinf.py ........                                             [ 58%]
tests/test_isnan.py ........                                             [ 62%]
tests/test_le.py ........                                                [ 65%]
tests/test_lt.py ........                                                [ 68%]
tests/test_mm.py ..                                                      [ 69%]
tests/test_mul.py ........                                               [ 73%]
tests/test_ne.py ........                                                [ 76%]
tests/test_neg.py ........                                               [ 79%]
tests/test_relu.py ........                                              [ 83%]
tests/test_rsqrt.py ........                                             [ 86%]
tests/test_sigmoid.py ........                                           [ 89%]
tests/test_sin.py ........                                               [ 93%]
tests/test_softmax.py ........                                           [ 96%]
tests/test_tanh.py ........                                              [100%]

======================= 238 passed in 675.32s (0:11:15) ========================

@voltjia voltjia merged commit 3ac48fd into InfiniTensor:master May 30, 2025
2 checks passed
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.

2 participants