Issue with traced models
See original GitHub issueIf user passes a traced model into create_supervised*
methods and specifies a device, there will be the following error:
traced_model = torch.jit.trace(model, z)
evaluator = create_supervised_evaluator(traced_model, metrics, device='cuda')
> RuntimeError: to is not supported on TracedModules
We need to check if model have the method .to
…
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Traced Model is giving error on CUDA · Issue #4580 - GitHub
If you do not know the root cause of the problem, please post according to this template: ... Traced Model is giving error...
Read more >Issues in trace-driven simulation | SpringerLink
This paper discusses the many issues associated with the input traces used in trace-driven simulation. A description of the different types of ...
Read more >Running traced machine learning model fails - Bug reports
Hello! I have a traced model (followed the instructions from Imfusion-Inference to trace a pretrained torch model and to write a yaml file)....
Read more >Model Tracing - coremltools
Tracing the model captures only the operations that are performed for a specific input. If your model uses a data-dependent control flow, such...
Read more >torch.onnx — PyTorch 1.13 documentation
PyTorch models can be written using NumPy or Python types and functions, but during tracing, any variables of NumPy or Python types (rather...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TheCodez you can do it like this:
Probably, we should wait until this issue is done.
EDIT: https://github.com/pytorch/pytorch/pull/15340