Skip to content

Commit 81cfcb6

Browse files
committed
Set expected tensors to the correct values.
Not MNIST.
1 parent 6185d5a commit 81cfcb6

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestTensorflow2Model.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,21 @@ public void testAdd6()
870870
@Test
871871
public void testAdd7()
872872
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
873-
test("tf2_test_add7.py", "add", 2, 2, Map.of(2, Set.of(MNIST_INPUT), 3, Set.of(MNIST_INPUT)));
873+
Dimension<Integer> aX = new NumericDim(1);
874+
Dimension<Integer> aY = new NumericDim(2);
875+
876+
Dimension<Integer> bX = new NumericDim(2);
877+
Dimension<Integer> bY = new NumericDim(2);
878+
879+
TensorType expectedTypeForA = new TensorType("pixel", asList(aX, aY));
880+
TensorType expectedTypeForB = new TensorType("pixel", asList(bX, bY));
881+
882+
test(
883+
"tf2_test_add7.py",
884+
"add",
885+
2,
886+
2,
887+
Map.of(2, Set.of(expectedTypeForA), 3, Set.of(expectedTypeForB)));
874888
}
875889

876890
@Test

0 commit comments

Comments
 (0)