Skip to content

Commit

Permalink
feat(aten::topk): Adding BUILD files for topk op
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Feb 2, 2021
1 parent 1557f6e commit 22e6a6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/conversion/converters/impl/topk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ auto topk_registrations TRTORCH_UNUSED = RegisterNodeConversionPatterns().patter
auto k = args[1].unwrapToInt();
auto dim = args[2].unwrapToInt();
auto largest = args[3].unwrapToBool();
auto sorted = args[4].unwrapToBool();
// auto sorted = args[4].unwrapToBool(); # Currently unused

auto selfDim = util::toVec(self->getDimensions());

//reduceAxes The reduction dimensions. The bit in position i of bitmask reduceAxes corresponds to explicit dimension i of the result.
Expand Down
5 changes: 5 additions & 0 deletions tests/core/conversion/converters/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ converter_test(
name = "test_stack"
)

converter_test(
name = "test_topk"
)

converter_test(
name = "test_lstm_cell"
)
Expand Down Expand Up @@ -99,5 +103,6 @@ test_suite(
":test_lstm_cell",
":test_unsqueeze",
":test_squeeze"
":test_topk",
]
)
File renamed without changes.

0 comments on commit 22e6a6b

Please sign in to comment.