Skip to content

Commit

Permalink
feat: Enable prim::DictConstruct to fallback without conversion check…
Browse files Browse the repository at this point in the history
… error

Signed-off-by: Dheeraj Peri <[email protected]>
  • Loading branch information
peri044 committed Mar 17, 2022
1 parent 11bcb98 commit 01d98c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/conversion/conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ 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)) {
if (n->kind() != torch::jit::prim::Loop && n->kind() != torch::jit::prim::If && !OpSupported(n) &&
n->kind() != torch::jit::prim::DictConstruct) {
auto schema = n->maybeSchema();
TORCHTRT_CHECK(
schema,
Expand Down

0 comments on commit 01d98c7

Please sign in to comment.