.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/usage/define_model.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_usage_define_model.py: Define Custom Model =================== Defining your own model using Pytorch is very convenient. If you are not sure how to do it, you can refer to `Dive into Deep Learning `_. Here, we will only introduce how to define the model so that it can be correctly used with trainers and experiments, as well as some useful tools. .. GENERATED FROM PYTHON SOURCE LINES 12-13 TODO .. _sphx_glr_download_auto_examples_usage_define_model.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: define_model.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: define_model.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: define_model.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_