We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
newShape
1 parent 4f9cb95 commit 174ebf7Copy full SHA for 174ebf7
com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client/RaggedConstant.java
@@ -369,7 +369,7 @@ protected Set<List<Dimension<?>>> getShapesOfValue(
369
370
// Determine the uniform lengths for dimensions R + 1 to K - 1.
371
for (int innerListLength : possibleInnerListLengths) {
372
- List<Dimension<?>> newShape = new ArrayList<>();
+ List<Dimension<?>> newShape = new ArrayList<>(shape.size());
373
newShape.addAll(shape);
374
375
for (long i = R + 1; i < K; i++) newShape.add(new NumericDim(innerListLength));
0 commit comments