From b86efa229f6e445f5a934df135bb39ce488e4ccd Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Thu, 9 May 2024 09:43:00 -0400 Subject: [PATCH] Add logging. --- .../com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java b/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java index eb80eb3fe..d72eb8566 100644 --- a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java +++ b/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java @@ -54,6 +54,12 @@ public void testEx1Tensors() throws IllegalArgumentException, CancelException, I checkTensorOps( Ex1URL, (PropagationCallGraphBuilder cgBuilder, CallGraph CG, TensorTypeAnalysis result) -> { + CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.dumpCG( + (SSAContextInterpreter) cgBuilder.getContextInterpreter(), + cgBuilder.getPointerAnalysis(), + CG); + String in = "[{[D:Symbolic,n, D:Compound,[D:Constant,28, D:Constant,28]] of pixel}]"; String out = "[{[D:Symbolic,?, D:Constant,28, D:Constant,28, D:Constant,1] of pixel}]"; checkTensorOp(cgBuilder, CG, result, "reshape", in, out);