Skip to content

issue/1100 Add round operator integration via ntops#1101

Open
GordonYang1 wants to merge 1 commit intoInfiniTensor:mainfrom
GordonYang1:issue/1100
Open

issue/1100 Add round operator integration via ntops#1101
GordonYang1 wants to merge 1 commit intoInfiniTensor:mainfrom
GordonYang1:issue/1100

Conversation

@GordonYang1
Copy link

yangzhenyu@GS4845:/data/shared/yangzhenyu/InfiniCore$ python test/infinicore/ops/round.py --nvidia

============================================================
Testing Round on NVIDIA

TestCase(round_out - inputs=[in_0: tensor(2, 3), float16], kwargs={decimals=0})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(2, 3), float16], kwargs={decimals=0; out=tensor(2, 3), float16})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(2, 3), float16], kwargs={decimals=0})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(2, 3), float32], kwargs={decimals=0})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(2, 3), float32], kwargs={decimals=0; out=tensor(2, 3), float32})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(2, 3), float32], kwargs={decimals=0})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(1, 4, 8), float16], kwargs={decimals=1})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(1, 4, 8), float16], kwargs={decimals=1; out=tensor(1, 4, 8), float16})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(1, 4, 8), float16], kwargs={decimals=1})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(1, 4, 8), float32], kwargs={decimals=1})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(1, 4, 8), float32], kwargs={decimals=1; out=tensor(1, 4, 8), float32})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(1, 4, 8), float32], kwargs={decimals=1})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(3, 2, 5, 7), float16], kwargs={decimals=-1})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(3, 2, 5, 7), float16], kwargs={decimals=-1; out=tensor(3, 2, 5, 7), float16})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(3, 2, 5, 7), float16], kwargs={decimals=-1})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(3, 2, 5, 7), float32], kwargs={decimals=-1})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(3, 2, 5, 7), float32], kwargs={decimals=-1; out=tensor(3, 2, 5, 7), float32})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(3, 2, 5, 7), float32], kwargs={decimals=-1})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(2, 1, 16), float16], kwargs={decimals=2})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(2, 1, 16), float16], kwargs={decimals=2; out=tensor(2, 1, 16), float16})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(2, 1, 16), float16], kwargs={decimals=2})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(2, 1, 16), float32], kwargs={decimals=2})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(2, 1, 16), float32], kwargs={decimals=2; out=tensor(2, 1, 16), float32})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(2, 1, 16), float32], kwargs={decimals=2})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(1, 8, 9, 11), float16], kwargs={decimals=0})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(1, 8, 9, 11), float16], kwargs={decimals=0; out=tensor(1, 8, 9, 11), float16})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(1, 8, 9, 11), float16], kwargs={decimals=0})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(1, 8, 9, 11), float32], kwargs={decimals=0})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(1, 8, 9, 11), float32], kwargs={decimals=0; out=tensor(1, 8, 9, 11), float32})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(1, 8, 9, 11), float32], kwargs={decimals=0})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(2, 6, 10), float16], kwargs={decimals=3})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(2, 6, 10), float16], kwargs={decimals=3; out=tensor(2, 6, 10), float16})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(2, 6, 10), float16], kwargs={decimals=3})
✓ Passed
TestCase(round_out - inputs=[in_0: tensor(2, 6, 10), float32], kwargs={decimals=3})
✓ Passed
TestCase(round_explicit_out - inputs=[in_0: tensor(2, 6, 10), float32], kwargs={decimals=3; out=tensor(2, 6, 10), float32})
✓ Passed
TestCase(round_inplace - inputs=[in_0: tensor(2, 6, 10), float32], kwargs={decimals=3})
✓ Passed

============================================================
TEST SUMMARY
Total tests: 36
Passed: 36
Success rate: 100.0%

All tests passed!

@GordonYang1 GordonYang1 requested a review from a team March 20, 2026 13:38
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