# \[ONNX\] Tried to trace \<submodule\> but it is not part of the active trace

**URL:** <https://discuss.pytorch.org/t/onnx-tried-to-trace-submodule-but-it-is-not-part-of-the-active-trace/80320>\
**Category:** jit\
**Created:** [May 8, 2020, 11:38am UTC](https://discuss.pytorch.org/t/onnx-tried-to-trace-submodule-but-it-is-not-part-of-the-active-trace/80320 "2020-05-08T11:38:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zetyquickly](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/zetyquickly/32/22489_2.png) [@zetyquickly](https://discuss.pytorch.org/u/zetyquickly)\
**Post date:** [May 8, 2020, 7:19pm UTC](https://discuss.pytorch.org/t/onnx-tried-to-trace-submodule-but-it-is-not-part-of-the-active-trace/80320/4 "2020-05-08T19:19:04Z")

</div>

Thank you @wanchaol, @jerryzh168. I’ll try again

But I’ve already opened a topic with such question and @supriyar has said that it is needed to `jit.trace` before `onnx.export` if we work with quantized model.  
Here’s the refference [ONNX export of quantized model](https://discuss.pytorch.org/t/onnx-export-of-quantized-model/76884/8)

---

_[View the full topic](https://discuss.pytorch.org/t/onnx-tried-to-trace-submodule-but-it-is-not-part-of-the-active-trace/80320)._
