Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions py/torch_tensorrt/dynamo/runtime/_ResourceAllocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def __init__(
self.dynamically_allocate_resources = dynamically_allocate_resources

def __enter__(self) -> None:
print("Entering resource allocator context")
for name, submodule in self.compiled_module.named_modules():
if "_run_on_acc" in name:
submodule.use_dynamically_allocated_resources(
Expand All @@ -32,5 +31,5 @@ def __exit__(self, exc_type: Any, exc_value: Any, exc_tb: Any) -> None:
for name, submodule in self.compiled_module.named_modules():
if "_run_on_acc" in name:
submodule.use_dynamically_allocated_resources(
dynamically_allocate_resources=self.dynamically_allocate_resources
dynamically_allocate_resources=False
)
Loading