Skip to content

Commit

Permalink
fix(//cpp/bin/torchtrtc): Fix mbs
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Nov 12, 2021
1 parent 9eae269 commit aca175f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/bin/torchtrtc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ int main(int argc, char** argv) {
"(Repeatable) Module that should always be run in Pytorch for execution (partial compilation must be enabled)",
{"tem", "torch-executed-mods"});

args::ValueFlagList<std::string> min_block_size(
args::ValueFlag<uint64_t> min_block_size(
parser,
"torch-executed-mods",
"min-block-size",
"Minimum number of contiguous TensorRT supported ops to compile a subgraph to TensorRT",
{"mbs", "min-block-size"});

Expand Down Expand Up @@ -626,6 +626,7 @@ int main(int argc, char** argv) {
std::ofstream out(real_output_path);
out << engine;
out.close();
return;
} else {
auto trt_mod = torchtrt::ts::compile(mod, compile_settings);

Expand Down

0 comments on commit aca175f

Please sign in to comment.