message: refactor(//cpp/trtorchexec): Demonstrate serialization in trtorchexec
diff: @@ -38,6 +38,7 @@ int main(int argc, const char* argv[]) {
  }
  mod.to(at::kCUDA);
  + mod.eval();
  std::vector<std::vector<int64_t>> dims;
  for (int i = 2; i < argc; i++) {
  @@ -106,5 +107,8 @@ int main(int argc, const char* argv[]) {
  }
  std::cout << "Converted Engine saved to /tmp/engine_converted_from_jit.trt" << std::endl;
  +
  + trt_mod.save("/tmp/ts_trt.ts");
  + std::cout << "Compiled TorchScript program saved to /tmp/ts_trt.ts" << std::endl;
  std::cout << "ok\n";
  }
  