Skip to content

Commit

Permalink
fix: Missing parameters in compiler settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-olive committed Apr 12, 2024
1 parent 766c270 commit 076e0f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py/torch_tensorrt/ts/_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

import torch
import torch_tensorrt._C.ts as _C
from torch_tensorrt import _enums
from torch_tensorrt._Device import Device
from torch_tensorrt._Input import Input
from torch_tensorrt.ts._compile_spec import _parse_compile_spec, _parse_device

from torch_tensorrt import _enums


def compile(
module: torch.jit.ScriptModule,
Expand Down Expand Up @@ -137,6 +138,9 @@ def compile(
"capability": capability, # Restrict kernel selection to safe gpu kernels or safe dla kernels
"num_avg_timing_iters": num_avg_timing_iters, # Number of averaging timing iterations used to select kernels
"workspace_size": workspace_size, # Maximum size of workspace given to TensorRT
"dla_sram_size": dla_sram_size,
"dla_local_dram_size": dla_local_dram_size,
"dla_global_dram_size": dla_global_dram_size,
"calibrator": calibrator,
"truncate_long_and_double": truncate_long_and_double,
"torch_fallback": {
Expand Down

0 comments on commit 076e0f7

Please sign in to comment.