File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -530,8 +530,8 @@ Status ModelImporter::importModel(
530530 for (::ONNX_NAMESPACE::ValueInfoProto const & output : graph.output ())
531531 {
532532 ASSERT (_importer_ctx.tensors ().count (output.name ()), ErrorCode::kINVALID_GRAPH );
533- ASSERT (_importer_ctx. tensors (). at (output. name ()). is_tensor (), ErrorCode:: kUNSUPPORTED_GRAPH );
534- nvinfer1::ITensor* output_tensor_ptr = &_importer_ctx.tensors ().at (output.name ()). tensor ( );
533+ nvinfer1::ITensor* output_tensor_ptr
534+ = &convertToTensor ( _importer_ctx.tensors ().at (output.name ()), &_importer_ctx );
535535 LOG_VERBOSE (" Marking " << output_tensor_ptr->getName () << " as output: " << output.name ());
536536 output_tensor_ptr->setName (output.name ().c_str ());
537537 if (output_tensor_ptr->isNetworkInput ())
You can’t perform that action at this time.
0 commit comments