Skip to content

Commit

Permalink
feat(aten::topk): Add a debug message noting that sorted is always true
Browse files Browse the repository at this point in the history
in TensorRT

Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Feb 2, 2021
1 parent 5bd7528 commit 81f1e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/conversion/converters/impl/topk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ auto topk_registrations TRTORCH_UNUSED = RegisterNodeConversionPatterns().patter
auto k = args[1].unwrapToInt();
auto dim = args[2].unwrapToInt();
auto largest = args[3].unwrapToBool();
LOG_DEBUG("Note: sorted argument is not used in TensorRT for aten::topk, results will depend on the value of largest");
// auto sorted = args[4].unwrapToBool(); # Currently unused

auto selfDim = util::toVec(self->getDimensions());
Expand Down
2 changes: 1 addition & 1 deletion tests/core/conversion/converters/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ test_suite(
":test_stack",
":test_lstm_cell",
":test_unsqueeze",
":test_squeeze"
":test_squeeze",
":test_topk",
]
)

0 comments on commit 81f1e9d

Please sign in to comment.