Skip to content

Commit

Permalink
fix: register the torch_fallback attribute in Python API
Browse files Browse the repository at this point in the history
Signed-off-by: Bo Wang <[email protected]>
  • Loading branch information
bowang007 committed Mar 11, 2021
1 parent 100b090 commit 8b7919f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/trtorch/csrc/trtorch_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ PYBIND11_MODULE(_C, m) {
.def_readwrite("num_min_timing_iters", &CompileSpec::num_min_timing_iters)
.def_readwrite("num_avg_timing_iters", &CompileSpec::num_avg_timing_iters)
.def_readwrite("workspace_size", &CompileSpec::workspace_size)
.def_readwrite("max_batch_size", &CompileSpec::max_batch_size);
.def_readwrite("max_batch_size", &CompileSpec::max_batch_size)
.def_readwrite("torch_fallback", &CompileSpec::torch_fallback);

py::class_<Device>(m, "Device")
.def(py::init<>())
Expand Down

0 comments on commit 8b7919f

Please sign in to comment.