@@ -105,7 +105,7 @@ void AddLayer(ConversionCtx* ctx, const torch::jit::Node* n) {
105105 // Node input has not been converted yet or is a prim op
106106 TORCHTRT_THROW_ERROR (
107107 " Unable to retrieve all node inputs for node: "
108- << util::node_info (n) << " (ctx.AddLayer)\n Specifically failed to retrieve value for input: " << *input_node );
108+ << util::node_info (n) << " (ctx.AddLayer)\n Specifically failed to retrieve value for input: % " << input-> debugName () );
109109 }
110110 }
111111
@@ -534,18 +534,21 @@ bool VerifyConverterSupportForBlock(const torch::jit::Block* b, bool suppress_er
534534 if (unsupported_ops.size () != 0 ) {
535535 std::stringstream unsupported_msg;
536536 unsupported_msg
537- << " Method requested cannot be compiled by Torch-TensorRT.TorchScript.\n Unsupported operators listed below:"
537+ << " Method requested cannot be compiled end to end by Torch-TensorRT.TorchScript.\n Unsupported operators listed below:"
538538 << std::endl;
539539 for (auto s : unsupported_ops) {
540540 unsupported_msg << " - " << s.second << std::endl;
541541 }
542- unsupported_msg << " You can either implement converters for these ops in your application or request implementation"
543- << std::endl;
544- unsupported_msg << " https://www.github.com/nvidia/Torch-TensorRT/issues" << std::endl;
545- unsupported_msg << std::endl << " In Module:" << std::endl;
546542
547543 if (!suppress_errors) {
544+ unsupported_msg << " You can either implement converters for these ops in your application or request implementation"
545+ << std::endl;
546+ unsupported_msg << " https://www.github.com/nvidia/Torch-TensorRT/issues" << std::endl;
547+ unsupported_msg << std::endl << " In Module:" << std::endl;
548+
548549 LOG_ERROR (unsupported_msg.str ());
550+ } else {
551+ LOG_INFO (unsupported_msg.str ());
549552 }
550553
551554 std::unordered_map<std::string, std::unordered_set<std::string>> unsupported_node_locations;
@@ -572,7 +575,11 @@ bool VerifyConverterSupportForBlock(const torch::jit::Block* b, bool suppress_er
572575 traceback << str;
573576 }
574577 auto tb_str = traceback.str ();
575- LOG_ERROR (tb_str);
578+ if (!suppress_errors) {
579+ LOG_ERROR (tb_str);
580+ } else {
581+ LOG_DEBUG (tb_str);
582+ }
576583 }
577584
578585 return false ;
0 commit comments