File tree 1 file changed +6
-5
lines changed
com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,12 @@ private void testTf2(
328
328
329
329
assertEquals (expectedNumberOfTensorVariables , functionTensorVariables .size ());
330
330
331
+ // check value numbers.
332
+ assertEquals (
333
+ "Each tensor parameter should have a unique value number." ,
334
+ expectedNumberOfTensorParameters ,
335
+ expectedTensorParameterValueNumbers .length );
336
+
331
337
// get the pointer keys for the function by their contexts.
332
338
Map <Context , Set <LocalPointerKey >> contextToFunctionParameterPointerKeys =
333
339
functionSignatureToPointerKeys .getOrDefault (functionSignature , emptySet ()).stream ()
@@ -342,11 +348,6 @@ private void testTf2(
342
348
assertEquals (expectedNumberOfTensorParameters , functionParameterPointerKeys .size ());
343
349
344
350
// check value numbers.
345
- assertEquals (
346
- "Each tensor parameter should have a unique value number." ,
347
- expectedNumberOfTensorParameters ,
348
- expectedTensorParameterValueNumbers .length );
349
-
350
351
Set <Integer > actualParameterValueNumberSet =
351
352
functionParameterPointerKeys .stream ()
352
353
.map (LocalPointerKey ::getValueNumber )
You can’t perform that action at this time.
0 commit comments