File tree Expand file tree Collapse file tree 3 files changed +224
-176
lines changed Expand file tree Collapse file tree 3 files changed +224
-176
lines changed Original file line number Diff line number Diff line change @@ -861,16 +861,12 @@ def preserve_module_specs(
861861 )
862862
863863 from torch_tensorrt .dynamo .partitioning ._resource_partitioner import (
864- resource_partition as resource_partitioner_partition ,
864+ resource_partition ,
865865 )
866866
867- partitioned_module , _ = resource_partitioner_partition (
867+ partitioned_module = resource_partition (
868868 gm ,
869869 partitioned_module ,
870- min_block_size = settings .min_block_size ,
871- torch_executed_ops = settings .torch_executed_ops ,
872- require_full_compilation = settings .require_full_compilation ,
873- skip_fusion = (num_supported_ops == total_ops ),
874870 cpu_memory_budget = settings .cpu_memory_budget ,
875871 )
876872
Original file line number Diff line number Diff line change 22import platform
33import tempfile
44
5+ import psutil
56import torch
67from torch_tensorrt ._Device import Device
78from torch_tensorrt ._enums import EngineCapability , dtype
5758L2_LIMIT_FOR_TILING = - 1
5859USE_DISTRIBUTED_MODE_TRACE = False
5960OFFLOAD_MODULE_TO_CPU = False
60- CPU_MEMORY_BUDGET = - 1
61+ CPU_MEMORY_BUDGET = psutil . virtual_memory (). available
6162
6263if platform .system () == "Linux" :
6364 import pwd
You can’t perform that action at this time.
0 commit comments