File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -262,9 +262,9 @@ struct TRTORCH_API CompileSpec {
262
262
* Emum for selecting engine capability
263
263
*/
264
264
enum class EngineCapability : int8_t {
265
- kDEFAULT ,
266
- kSAFE_GPU ,
267
- kSAFE_DLA ,
265
+ kSTANDARD ,
266
+ kSAFETY ,
267
+ kDLA_STANDALONE ,
268
268
};
269
269
270
270
class TRTORCH_API TensorFormat {
@@ -721,7 +721,7 @@ struct TRTORCH_API CompileSpec {
721
721
/* *
722
722
* Sets the restrictions for the engine (CUDA Safety)
723
723
*/
724
- EngineCapability capability = EngineCapability::kDEFAULT ;
724
+ EngineCapability capability = EngineCapability::kSTANDARD ;
725
725
726
726
/* *
727
727
* Number of minimization timing iterations used to select kernels
Original file line number Diff line number Diff line change @@ -385,13 +385,13 @@ core::CompileSpec to_internal_compile_spec(CompileSpec external) {
385
385
}
386
386
387
387
switch (external.capability ) {
388
- case CompileSpec::EngineCapability::kSAFE_GPU :
388
+ case CompileSpec::EngineCapability::kSAFETY :
389
389
internal.convert_info .engine_settings .capability = nvinfer1::EngineCapability::kSAFETY ;
390
390
break ;
391
- case CompileSpec::EngineCapability::kSAFE_DLA :
391
+ case CompileSpec::EngineCapability::kDLA_STANDALONE :
392
392
internal.convert_info .engine_settings .capability = nvinfer1::EngineCapability::kDLA_STANDALONE ;
393
393
break ;
394
- case CompileSpec::EngineCapability::kDEFAULT :
394
+ case CompileSpec::EngineCapability::kSTANDARD :
395
395
default :
396
396
internal.convert_info .engine_settings .capability = nvinfer1::EngineCapability::kSTANDARD ;
397
397
}
You can’t perform that action at this time.
0 commit comments