# onnx

**URL:** https://dev-discuss.pytorch.org/c/deployment/onnx/16.md

[Latest](https://dev-discuss.pytorch.org/latest.md) · [Categories](https://dev-discuss.pytorch.org/categories.md)

---

## [About the onnx category](https://dev-discuss.pytorch.org/t/about-the-onnx-category/25)

<div class="topic-metadata">

**Author:** [@smth](https://dev-discuss.pytorch.org/u/smth)\
**Replies:** 0

</div>

---

## [Exporting a model containing backpropagation to onnx](https://dev-discuss.pytorch.org/t/exporting-a-model-containing-backpropagation-to-onnx/1984)

<div class="topic-metadata">

**Author:** [@DavidMinorNV](https://dev-discuss.pytorch.org/u/DavidMinorNV)\
**Replies:** 0\
**Last updated:** [April 2, 2024, 6:15pm UTC](https://dev-discuss.pytorch.org/t/exporting-a-model-containing-backpropagation-to-onnx/1984 "2024-04-02T18:15:33Z")

</div>

Hello, We’ve got a model containing a bunch of stuff like transformers, slicing, indexing using arrays, concatenation etc and, most awkwardly, a call to torch.autograd.grad(), which I’ve been trying to export to onnx fo…
