Skip to content

Commit b3e8e6e

Browse files
Update divide operation test to match new accumulation semantics
Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
1 parent b34d164 commit b3e8e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testTensorOps.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ TEST_F(MinskyTensorOpSuite, tensorBinOpMultiples)
995995
(0, [](double x,double y){return x+y;}, [](double x){return -x;});
996996
multiWireTest<OperationType::multiply>(1, [](double x,double y){return x*y;}, id);
997997
multiWireTest<OperationType::divide>
998-
(1, [](double x,double y){return x*y;}, [](double x){return 1/x;});
998+
(1, [](double x,double y){return 1.0/x/y;}, [](double x){return 1/x;});
999999
multiWireTest<OperationType::min>
10001000
(std::numeric_limits<double>::max(), [](double x,double y){return x<y? x: y;}, id);
10011001
multiWireTest<OperationType::max>

0 commit comments

Comments
 (0)