@@ -487,7 +487,8 @@ std::string ConvertBlockToEngine(
487
487
std::unordered_map<c10::OperatorName, std::string> GetUnsupportedOpsInBlock (const torch::jit::Block* b) {
488
488
std::unordered_map<c10::OperatorName, std::string> unsupported_ops;
489
489
for (const auto n : b->nodes ()) {
490
- if (n->kind () != torch::jit::prim::Loop && n->kind () != torch::jit::prim::If && !OpSupported (n)) {
490
+ if (n->kind () != torch::jit::prim::Loop && n->kind () != torch::jit::prim::If && !OpSupported (n) &&
491
+ n->kind () != torch::jit::prim::DictConstruct) {
491
492
auto schema = n->maybeSchema ();
492
493
TORCHTRT_CHECK (
493
494
schema,
@@ -544,9 +545,7 @@ bool VerifyConverterSupportForBlock(const torch::jit::Block* b, bool suppress_er
544
545
unsupported_msg << " https://www.github.com/nvidia/Torch-TensorRT/issues" << std::endl;
545
546
unsupported_msg << std::endl << " In Module:" << std::endl;
546
547
547
- if (!suppress_errors) {
548
- LOG_ERROR (unsupported_msg.str ());
549
- }
548
+ LOG_DEBUG (unsupported_msg.str ());
550
549
551
550
std::unordered_map<std::string, std::unordered_set<std::string>> unsupported_node_locations;
552
551
for (const auto n : b->nodes ()) {
@@ -571,8 +570,9 @@ bool VerifyConverterSupportForBlock(const torch::jit::Block* b, bool suppress_er
571
570
for (const auto & str : type.second ) {
572
571
traceback << str;
573
572
}
574
- auto tb_str = traceback.str ();
575
- LOG_ERROR (tb_str);
573
+ if (!suppress_errors) {
574
+ LOG_ERROR (traceback.str ());
575
+ }
576
576
}
577
577
578
578
return false ;
0 commit comments