Comments (1)
Can you try adding this before you export:
mod = Model()
mod.eval()
torch.export.export(mod, example_args)
By the way, you don't need to call capture_pre_autograd_graph
if you are not doing quantization.
from pytorch.
Related Issues (20)
- Documentation for DDP-related environment variables HOT 1
- [Bug] The cuDNN version is too old! HOT 2
- Adam is storing step as cpu tensor
- nn.Transformer gives different output in torch.no_grad() context HOT 2
- Memory leak when assigning function to instance variable
- DISABLED test_attention_vs_linear (__main__.MemoryBudgetTest) HOT 1
- `torch.compile` with `reduce-overhead` and DDP causes crash in inference after training
- Why does the size of state_dict decrease a lot when I move the parameters to the CPU? What information was lost?
- Rebase your PRs: Unstable CUDA signal in CI caused by cudnn 9 update
- torch.jit.script causes Segmentation fault 139 HOT 3
- AOTAutogradCache implementation
- Cannot convert -oo to int HOT 4
- AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") HOT 4
- Use of standard library math functions vs global namespace
- can not create custom gradient when fp8 type is used
- JIT script can cause unneeded `requires_grad` inside `no_grad` blocks
- torchinductor error in torchao tests HOT 1
- unexpected `inference_mode` interaction with `torch.autograd.functional.jacobian`
- python test/inductor/test_torchinductor.py -k GPUTests.test_slice_scatter_reinplace_cuda failure
- Fast path detach()/alias() in FakeTensor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch.