"projects/DensePose/densepose/data/inference_based_loader.py" did not exist on "5b3792fc3ef9ab6a6f8f30634ab2e52fb0941af3"
Commit fdd64119 authored by Jacob Szwejbka's avatar Jacob Szwejbka Committed by Facebook GitHub Bot
Browse files

Remove run_on_bundled_input

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/58344

remove a helper function thats more trouble then its worth.

ghstack-source-id: 129131889

Reviewed By: dhruvbird

Differential Revision: D28460607

fbshipit-source-id: 31bd6c1cc169785bb360e3113d258b612cad47fc
parent cbd695ac
......@@ -88,7 +88,7 @@ def trace_and_save_torchscript(
iters.send(torch.zeros_like(x).contiguous())
inputs = iters.value
augment_model_with_bundled_inputs(liteopt_model, [inputs])
liteopt_model.run_on_bundled_input(0) # sanity check
liteopt_model(*liteopt_model.get_all_bundled_inputs()[0]) # sanity check
name, ext = os.path.splitext(torchscript_filename)
with _synced_local_file(name + "_bundled" + ext) as lite_path:
liteopt_model._save_for_lite_interpreter(lite_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment