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 @@ -191,9 +191,9 @@ struct TRTORCH_API CompileSpec {
191
191
* Emum for selecting engine capability
192
192
*/
193
193
enum class EngineCapability : int8_t {
194
- kDEFAULT ,
195
- kSAFE_GPU ,
196
- kSAFE_DLA ,
194
+ kSTANDARD ,
195
+ kSAFETY ,
196
+ kDLA_STANDALONE ,
197
197
};
198
198
199
199
/* *
@@ -420,7 +420,7 @@ struct TRTORCH_API CompileSpec {
420
420
/* *
421
421
* Sets the restrictions for the engine (CUDA Safety)
422
422
*/
423
- EngineCapability capability = EngineCapability::kDEFAULT ;
423
+ EngineCapability capability = EngineCapability::kSTANDARD ;
424
424
425
425
/* *
426
426
* Number of minimization timing iterations used to select kernels
Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ core::CompileSpec to_internal_compile_spec(CompileSpec external) {
123
123
}
124
124
125
125
switch (external.capability ) {
126
- case CompileSpec::EngineCapability::kSAFE_GPU :
126
+ case CompileSpec::EngineCapability::kSAFETY :
127
127
internal.convert_info .engine_settings .capability = nvinfer1::EngineCapability::kSAFETY ;
128
128
break ;
129
- case CompileSpec::EngineCapability::kSAFE_DLA :
129
+ case CompileSpec::EngineCapability::kDLA_STANDALONE :
130
130
internal.convert_info .engine_settings .capability = nvinfer1::EngineCapability::kDLA_STANDALONE ;
131
131
break ;
132
- case CompileSpec::EngineCapability::kDEFAULT :
132
+ case CompileSpec::EngineCapability::kSTANDARD :
133
133
default :
134
134
internal.convert_info .engine_settings .capability = nvinfer1::EngineCapability::kSTANDARD ;
135
135
}
You can’t perform that action at this time.
0 commit comments