Closed
[Bug-Report|缺陷反馈]: Rightshift,Leftshift和Gcd未对非整形标量拦截 #3721
yangzhimiaoAdd on Oct 30Closed at Oct 30
yangzhimiao
Oct 30 Comments:
Oct 30 Comments:
/assign


Oct 30 Assign yangzhimiao as responsible person
Oct 30 Associated pull request
Oct 30 Close issue
Oct 30 Added label: resolved
Describe the current behavior / 问题描述 (Mandatory / 必填)
Rightshift,Leftshift和Gcd未对非整形标量拦截,exp:ERROR,act:PASS
Environment / 环境信息 (Mandatory / 必填)
910B3。cann 9.1.0。
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
在csv中新增scale数据类型为非整形类型后运行测试样例
Describe the expected behavior / 预期结果 (Mandatory / 必填)
运行scale为fp32 Rightshift,Leftshift和Gcd样例时预期报错,实际通过。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
运行scale为fp32样例时预期报错,实际通过。
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestGcds/GcdsOperationTest
[ RUN ] TestGcds/GcdsOperationTest.TestGcds/3
Create Tensors For {"case_index":3,"case_name":"Gcds_test_4","index":3,"input_tensors":[{"data_range":{"max":100000000,"min":-100000000},"dtype":"int32","format":"ND","name":"input0","need_trans":false,"shape":[7,8]}],"operation":"Gcds","output_tensors":[{"dtype":"int32","format":"ND","name":"output0","need_trans":false,"shape":[7,8]}],"params":{"func_id":-1,"on_board":true,"scalar":152,"scalar_type":"fp32"},"tile_shape":[2,8],"view_shape":[4,16]}
Create Tensors For {"case_index":3,"case_name":"Gcds_test_4","index":3,"input_tensors":[{"data_range":{"max":100000000,"min":-100000000},"dtype":"int32","format":"ND","name":"input0","need_trans":false,"shape":[7,8]}],"operation":"Gcds","output_tensors":[{"dtype":"int32","format":"ND","name":"output0","need_trans":false,"shape":[7,8]}],"params":{"func_id":-1,"on_board":true,"scalar":152,"scalar_type":"fp32"},"tile_shape":[2,8],"view_shape":[4,16]}
!!! Kernel Launch
max diff: 0, max diff ratio: 0, err count: 0, err threshold: 0, err count ratio: 0, act zero count: 0, act zero threshold: 1000, act zero ratio: 0
[ OK ] TestGcds/GcdsOperationTest.TestGcds/3 (7260 ms)
[----------] 1 test from TestGcds/GcdsOperationTest (7260 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (7260 ms total)
[ PASSED ] 1 test.
Special notes for this issue/备注 (Optional / 选填)