Skip to content

Commit 74b0ef4

Browse files
committed
Use API.
1 parent 09a479c commit 74b0ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private Set<List<Dimension<?>>> getShapesOfValue(
262262
for (InstanceKey valueIK : valuePointsToSet)
263263
if (valueIK instanceof ConstantKey) ret.add(emptyList()); // Scalar value.
264264
else if (valueIK instanceof AllocationSiteInNode) {
265-
AllocationSiteInNode asin = (AllocationSiteInNode) valueIK;
265+
AllocationSiteInNode asin = getAllocationSiteInNode(valueIK);
266266
TypeReference reference = asin.getConcreteType().getReference();
267267

268268
if (reference.equals(list)) {

0 commit comments

Comments
 (0)