You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (compiled_engine->requires_output_allocator) { // engine requires OA
521
521
if (cudagraphs_enabled) {
522
522
TORCHTRT_THROW_ERROR(
523
-
"This module requires OutputAllocator which is not compatible with CUDA Graphs. Please disable CUDA Graphs.");
523
+
"The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.");
524
524
}
525
-
LOG_DEBUG("Using OutputAllocator in runtime.");
525
+
LOG_DEBUG("Using the dynamic allocator runtime mode.");
526
526
returnrun_output_allocator();
527
527
} else {
528
528
if (compiled_engine->use_output_allocator_outputs) { // users call OA context manager
529
529
if (cudagraphs_enabled) {
530
-
TORCHTRT_THROW_ERROR("Both CUDA Graphs and OutputAllocator are enabled. Please disable either one.");
530
+
TORCHTRT_THROW_ERROR(
531
+
"Both CUDA Graphs and dynamic output allocation are enabled, which are incompatible runtime modes. Please disable one of the two.");
531
532
}
532
-
LOG_DEBUG("Using OutputAllocator in runtime.");
533
+
LOG_DEBUG("Using the dynamic allocator runtime mode.");
533
534
returnrun_output_allocator();
534
535
} else {
535
-
LOG_DEBUG("Using standard execution with cudagraphs=" << cudagraphs_enabled << ".");
536
+
LOG_DEBUG("Using the standard execution runtime mode with cudagraphs=" << cudagraphs_enabled << ".");
ifself.requires_output_allocator: # engine requires OA
684
684
ifself.cudagraphs_enabled:
685
685
raiseRuntimeError(
686
-
"This module requires OutputAllocator which is not compatible with CUDA Graphs. Please disable CUDA Graphs."
686
+
"The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs."
687
687
)
688
-
logger.debug("Using OutputAllocator in runtime.")
688
+
logger.debug("Using the dynamic allocator runtime mode.")
689
689
returnrun_output_allocator()
690
690
else:
691
691
ifself.use_output_allocator_outputs: # users call OA context manager
692
692
ifself.cudagraphs_enabled:
693
693
raiseRuntimeError(
694
-
"Both CUDA Graphs and OutputAllocator are enabled. Please disable either one."
694
+
"Both CUDA Graphs and dynamic output allocation are enabled, which are incompatible runtime modes. Please disable one of the two."
695
695
)
696
-
logger.debug("Using OutputAllocator in runtime.")
696
+
logger.debug("Using the dynamic allocator runtime mode.")
697
697
returnrun_output_allocator()
698
698
else:
699
699
logger.debug(
700
-
f"Using standard execution with cudagraphs={self.cudagraphs_enabled}."
700
+
f"Using the standard execution runtime mode with cudagraphs={self.cudagraphs_enabled}."
"There are converters that require Output Allocator. Please disable CUDA Graphs."
84
+
"The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs."
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
168
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
235
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
245
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
278
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
345
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
355
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
385
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
454
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
match="There are converters that require Output Allocator. Please disable CUDA Graphs.",
464
+
match="The model contains submodules that require a dynamic output allocator at runtime, which is incompatible with CUDA Graphs. Please disable CUDA Graphs.",
0 commit comments