Skip to content

Commit c37eeec

Browse files
committed
chore: deleting the previous fix
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent c62474a commit c37eeec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/conversion/evaluators/eval_util.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ c10::IValue dynamic_size_layer(ConversionCtx* ctx, const torch::jit::Node* n, kw
4545
// Handle negative axis by refering to nbDims of input Tensor
4646
dim = dim < 0 ? dim + maxDim : dim;
4747
LOG_DEBUG("Dimension to select: " << dim);
48-
// Check if selected dimension size is -1 else return static size
49-
if (input_dims.d[dim] != -1) {
50-
return input_dims.d[dim];
51-
}
5248
shape_1d_tensor = index_layer(ctx, n, shape_1d_tensor, dim);
5349
LOG_DEBUG("Output tensor shape: " << shape_1d_tensor->getDimensions());
5450

0 commit comments

Comments
 (0)