Skip to content
Closed
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: 2 additions & 1 deletion torchbenchmark/util/backends/fx2trt.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ def lower_to_trt(
"""
from fx2trt_oss.fx import LowerSetting
from fx2trt_oss.fx.lower import Lowerer
from fx2trt_oss.fx.utils import LowerPrecision
lower_setting = LowerSetting(
max_batch_size=max_batch_size,
max_workspace_size=max_workspace_size,
explicit_batch_dimension=explicit_batch_dimension,
fp16_mode=fp16_mode,
lower_precision=LowerPrecision.FP16,
enable_fuse=enable_fuse,
verbose_log=verbose_log,
timing_cache_prefix=timing_cache_prefix,
Expand Down