Skip to content

Commit afaa003

Browse files
committed
IR: Fix the mnist and cifar tests by passing the result of the softmax node, and not the node itself. This failure was cought by the IR verifier.
1 parent 911d7c8 commit afaa003

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/cifar10.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void testCIFAR10() {
9696
auto *FCL1 = bb.createFullyConnectedOp(*MP2, 10);
9797
auto *RL3 = bb.createRELUOp(*FCL1);
9898
auto *SM = bb.createSoftMaxOp(*RL3, E);
99-
result = bb.createReturnOp(SM);
99+
result = bb.createReturnOp(*SM);
100100
}
101101

102102
IP.optimize();

examples/mnist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void testMNIST() {
8989
auto *RL2 = bb.createRELUOp(*FCL1);
9090
selected = bb.createWeightVar(ElemKind::IndexTy, {minibatchSize, 1});
9191
auto *SM = bb.createSoftMaxOp(*RL2, selected);
92-
result = bb.createReturnOp(SM);
92+
result = bb.createReturnOp(*SM);
9393
}
9494

9595
IP.optimize();

0 commit comments

Comments
 (0)