Skip to content

Commit 11fada5

Browse files
committed
chore(aten::softmax): Revert redundant change in softmax
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 96850b6 commit 11fada5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/conversion/converters/impl/softmax.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ static auto softmax_registrations TRTORCH_UNUSED = RegisterNodeConversionPattern
2626
}
2727

2828
int64_t dim = args[1].IValue()->toInt();
29-
if (dim == -1) {
30-
dim = shape.size() - 1;
31-
}
3229
auto softmax = ctx->net->addSoftMax(*in);
3330

3431
TRTORCH_CHECK(softmax, "Unable to create softmax layer from node: " << *n);

0 commit comments

Comments
 (0)