@@ -18,19 +18,12 @@ std::ostream& operator<<(std::ostream& os, const BuilderSettings& s) {
1818 << " \n Truncate Long and Double: " << s.truncate_long_and_double \
1919 << " \n Make Refittable Engine: " << s.refit \
2020 << " \n Debuggable Engine: " << s.debug \
21- << " \n Strict Types: " << s.strict_types \
2221 << " \n GPU ID: " << s.device .gpu_id \
2322 << " \n Allow GPU Fallback (if running on DLA): " << s.device .allow_gpu_fallback \
2423 << " \n Min Timing Iterations: " << s.num_min_timing_iters \
2524 << " \n Avg Timing Iterations: " << s.num_avg_timing_iters \
2625 << " \n Max Workspace Size: " << s.workspace_size ;
2726
28- if (s.max_batch_size != 0 ) {
29- os << " \n Max Batch Size: " << s.max_batch_size ;
30- } else {
31- os << " \n Max Batch Size: Not set" ;
32- }
33-
3427 os << " \n Device Type: " << s.device .device_type \
3528 << " \n GPU ID: " << s.device .gpu_id ;
3629 if (s.device .device_type == nvinfer1::DeviceType::kDLA ) {
@@ -107,18 +100,10 @@ ConversionCtx::ConversionCtx(BuilderSettings build_settings)
107100 cfg->setFlag (nvinfer1::BuilderFlag::kDEBUG );
108101 }
109102
110- if (settings.strict_types ) {
111- cfg->setFlag (nvinfer1::BuilderFlag::kSTRICT_TYPES );
112- }
113-
114103 if (settings.device .allow_gpu_fallback ) {
115104 cfg->setFlag (nvinfer1::BuilderFlag::kGPU_FALLBACK );
116105 }
117106
118- if (settings.max_batch_size != 0 ) {
119- builder->setMaxBatchSize (settings.max_batch_size );
120- }
121-
122107 cfg->setMinTimingIterations (settings.num_min_timing_iters );
123108 cfg->setAvgTimingIterations (settings.num_avg_timing_iters );
124109 cfg->setMaxWorkspaceSize (settings.workspace_size );
0 commit comments