Skip to content

Commit 8e10b2c

Browse files
committed
Add more shape checks.
1 parent 96a0c4e commit 8e10b2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,11 +873,15 @@ public void testAdd7()
873873
Dimension<Integer> aX = new NumericDim(1);
874874
Dimension<Integer> aY = new NumericDim(2);
875875

876+
List<Dimension<?>> aDimensions = asList(aX, aY);
877+
876878
Dimension<Integer> bX = new NumericDim(2);
877879
Dimension<Integer> bY = new NumericDim(2);
878880

879-
TensorType expectedTypeForA = new TensorType("pixel", asList(aX, aY));
880-
TensorType expectedTypeForB = new TensorType("pixel", asList(bX, bY));
881+
List<Dimension<?>> bDimensions = asList(bX, bY);
882+
883+
TensorType expectedTypeForA = new TensorType("pixel", aDimensions);
884+
TensorType expectedTypeForB = new TensorType("pixel", bDimensions);
881885

882886
test(
883887
"tf2_test_add7.py",

0 commit comments

Comments
 (0)