@@ -108,10 +108,10 @@ core::CompileSpec CompileSpec::toInternalCompileSpec() {
108
108
info.convert_info .engine_settings .device .gpu_id = device.gpu_id ;
109
109
info.convert_info .engine_settings .device .dla_core = device.dla_core ;
110
110
info.convert_info .engine_settings .device .allow_gpu_fallback = device.allow_gpu_fallback ;
111
- info.convert_info .engine_settings .torch_fallback .enabled = torch_fallback.enabled ;
112
111
info.partition_info .enabled = torch_fallback.enabled ;
113
112
info.partition_info .min_block_size = torch_fallback.min_block_size ;
114
113
info.partition_info .forced_fallback_operators = torch_fallback.forced_fallback_operators ;
114
+ info.convert_info .engine_settings .truncate_long_and_double = truncate_long_and_double;
115
115
116
116
info.convert_info .engine_settings .capability = toTRTEngineCapability (capability);
117
117
TRTORCH_CHECK (num_min_timing_iters >= 0 , " num_min_timing_iters must be 0 or greater" );
@@ -148,6 +148,15 @@ std::string CompileSpec::stringify() {
148
148
ss << " \" Workspace Size\" : " << workspace_size << std::endl;
149
149
ss << " \" Max Batch Size\" : " << max_batch_size << std::endl;
150
150
ss << " \" Truncate long and double\" : " << truncate_long_and_double << std::endl;
151
+ ss << " \" Torch Fallback: {" << std::endl;
152
+ ss << " \" enabled\" : " << torch_fallback.enabled ? " True" : " False" << std::endl;
153
+ ss << " \" min_block_size\" : " << torch_fallback.min_block_size << std::endl;
154
+ ss << " \" forced_fallback_operators\" : [" << std::endl;
155
+ for (auto i : torch_fallback.forced_fallback_operators ) {
156
+ ss << " " << i << ' ,' << std::endl;
157
+ }
158
+ ss << " ]" << std::endl;
159
+ ss << " }" << std::endl;
151
160
ss << " }" ;
152
161
return ss.str ();
153
162
}
0 commit comments