Skip to content

Commit 4ad808b

Browse files
committed
Format.
1 parent 54ccbb8 commit 4ad808b

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

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

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ public class TestTensorflow2Model extends TestPythonMLCallGraphShape {
6666

6767
private static final TensorType SCALAR_TENSOR_OF_INT32 = new TensorType(INT_32, emptyList());
6868

69-
private static final TensorType TENSOR_1_2_FLOAT32 = new TensorType(FLOAT_32, asList(new NumericDim(1), new NumericDim(2)));
69+
private static final TensorType TENSOR_1_2_FLOAT32 =
70+
new TensorType(FLOAT_32, asList(new NumericDim(1), new NumericDim(2)));
7071

71-
private static final TensorType TENSOR_2_2_FLOAT32 = new TensorType(FLOAT_32, asList(new NumericDim(2), new NumericDim(2)));
72+
private static final TensorType TENSOR_2_2_FLOAT32 =
73+
new TensorType(FLOAT_32, asList(new NumericDim(2), new NumericDim(2)));
7274

7375
@Test
7476
public void testValueIndex()
@@ -887,23 +889,29 @@ public void testAdd7()
887889
"add",
888890
2,
889891
2,
890-
Map.of(
891-
2,
892-
Set.of(TENSOR_1_2_FLOAT32),
893-
3,
894-
Set.of(TENSOR_2_2_FLOAT32)));
892+
Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
895893
}
896894

897895
@Test
898896
public void testAdd8()
899897
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
900-
test("tf2_test_add8.py", "add", 2, 2, Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
898+
test(
899+
"tf2_test_add8.py",
900+
"add",
901+
2,
902+
2,
903+
Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
901904
}
902905

903906
@Test
904907
public void testAdd9()
905908
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
906-
test("tf2_test_add9.py", "add", 2, 2, Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
909+
test(
910+
"tf2_test_add9.py",
911+
"add",
912+
2,
913+
2,
914+
Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
907915
}
908916

909917
@Test
@@ -1147,15 +1155,25 @@ public void testAdd47()
11471155
@Test
11481156
public void testAdd48()
11491157
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
1150-
test("tf2_test_add48.py", "add", 2, 2, Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
1158+
test(
1159+
"tf2_test_add48.py",
1160+
"add",
1161+
2,
1162+
2,
1163+
Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
11511164
}
11521165

11531166
@Test
11541167
public void testAdd49()
11551168
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
11561169
// NOTE: Set the expected number of tensor variables to 3 once
11571170
// https://github.com/wala/ML/issues/135 is fixed.
1158-
test("tf2_test_add49.py", "add", 2, 2, Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
1171+
test(
1172+
"tf2_test_add49.py",
1173+
"add",
1174+
2,
1175+
2,
1176+
Map.of(2, Set.of(TENSOR_1_2_FLOAT32), 3, Set.of(TENSOR_2_2_FLOAT32)));
11591177
}
11601178

11611179
@Test

0 commit comments

Comments
 (0)