Skip to content

Commit

Permalink
fix: [collection] skip ListConstruct in condition
Browse files Browse the repository at this point in the history
Signed-off-by: inocsin <[email protected]>
  • Loading branch information
inocsin committed Apr 8, 2022
1 parent 47455d1 commit 6391ae3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/conversion/conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ std::string ConvertBlockToEngine(
std::unordered_map<c10::OperatorName, std::string> GetUnsupportedOpsInBlock(const torch::jit::Block* b) {
std::unordered_map<c10::OperatorName, std::string> unsupported_ops;
for (const auto n : b->nodes()) {
if (n->kind() != torch::jit::prim::Loop && n->kind() != torch::jit::prim::If && !OpSupported(n) && n->kind() != torch::jit::prim::TupleConstruct) {
if (n->kind() != torch::jit::prim::Loop && n->kind() != torch::jit::prim::If &&
!OpSupported(n) && n->kind() != torch::jit::prim::TupleConstruct &&
n->kind() != torch::jit::prim::ListConstruct) {
auto schema = n->maybeSchema();
TORCHTRT_CHECK(
schema,
Expand Down

0 comments on commit 6391ae3

Please sign in to comment.