Skip to content

Commit e9969bd

Browse files
committed
Format.
1 parent 5047844 commit e9969bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client/PythonTensorAnalysisEngine.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,8 @@ public TensorTypeAnalysis performAnalysis(PropagationCallGraphBuilder builder)
709709
init.put(e.getKey(), Set.of(e.getValue()));
710710

711711
Map<PointsToSetVariable, TensorType> setCalls = HashMapFactory.make();
712-
Map<PointsToSetVariable, TensorType> set_shapes = getShapeSourceCalls(set_shape, builder, 1); // TODO: What if you used tf.ones() here?
712+
Map<PointsToSetVariable, TensorType> set_shapes =
713+
getShapeSourceCalls(set_shape, builder, 1); // TODO: What if you used tf.ones() here?
713714

714715
for (Map.Entry<PointsToSetVariable, TensorType> x : set_shapes.entrySet()) {
715716
LocalPointerKey localPointerKey = (LocalPointerKey) x.getKey().getPointerKey();
@@ -768,7 +769,8 @@ private Set<TensorType> getTensorType(
768769
TypeReference calledFunction = node.getMethod().getDeclaringClass().getReference();
769770
logger.info("Getting tensor type for call to: " + calledFunction.getName() + ".");
770771

771-
if (calledFunction.equals(ONES.getDeclaringClass())) { // TODO: This can also be a tuple of Tensor.
772+
if (calledFunction.equals(
773+
ONES.getDeclaringClass())) { // TODO: This can also be a tuple of Tensor.
772774
// This is a call to `ones()`. The shape is in the first explicit argument.
773775
PointerAnalysis<InstanceKey> pointerAnalysis = builder.getPointerAnalysis();
774776
// TODO: Handle keyword arguments.

0 commit comments

Comments
 (0)