ApproxMPC
=========

.. currentmodule:: do_mpc.approximateMPC

.. autoclass:: ApproxMPC
    :show-inheritance:
    :special-members: __call__, __getitem__



.. currentmodule:: do_mpc.approximateMPC.ApproxMPC

Methods
-------


 
add\_module
~~~~~~~~~~~

.. autofunction:: add_module
 
apply
~~~~~

.. autofunction:: apply
 
bfloat16
~~~~~~~~

.. autofunction:: bfloat16
 
buffers
~~~~~~~

.. autofunction:: buffers
 
children
~~~~~~~~

.. autofunction:: children
 
clip\_control\_actions
~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: clip_control_actions
 
compile
~~~~~~~

.. autofunction:: compile
 
cpu
~~~

.. autofunction:: cpu
 
cuda
~~~~

.. autofunction:: cuda
 
double
~~~~~~

.. autofunction:: double
 
eval
~~~~

.. autofunction:: eval
 
extra\_repr
~~~~~~~~~~~

.. autofunction:: extra_repr
 
float
~~~~~

.. autofunction:: float
 
forward
~~~~~~~

.. autofunction:: forward
 
get\_buffer
~~~~~~~~~~~

.. autofunction:: get_buffer
 
get\_extra\_state
~~~~~~~~~~~~~~~~~

.. autofunction:: get_extra_state
 
get\_parameter
~~~~~~~~~~~~~~

.. autofunction:: get_parameter
 
get\_submodule
~~~~~~~~~~~~~~

.. autofunction:: get_submodule
 
half
~~~~

.. autofunction:: half
 
ipu
~~~

.. autofunction:: ipu
 
load\_from\_state\_dict
~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: load_from_state_dict
 
load\_state\_dict
~~~~~~~~~~~~~~~~~

.. autofunction:: load_state_dict
 
make\_step
~~~~~~~~~~

.. autofunction:: make_step
 
modules
~~~~~~~

.. autofunction:: modules
 
mtia
~~~~

.. autofunction:: mtia
 
named\_buffers
~~~~~~~~~~~~~~

.. autofunction:: named_buffers
 
named\_children
~~~~~~~~~~~~~~~

.. autofunction:: named_children
 
named\_modules
~~~~~~~~~~~~~~

.. autofunction:: named_modules
 
named\_parameters
~~~~~~~~~~~~~~~~~

.. autofunction:: named_parameters
 
parameters
~~~~~~~~~~

.. autofunction:: parameters
 
predict
~~~~~~~

.. autofunction:: predict
 
register\_backward\_hook
~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_backward_hook
 
register\_buffer
~~~~~~~~~~~~~~~~

.. autofunction:: register_buffer
 
register\_forward\_hook
~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_forward_hook
 
register\_forward\_pre\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_forward_pre_hook
 
register\_full\_backward\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_full_backward_hook
 
register\_full\_backward\_pre\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_full_backward_pre_hook
 
register\_load\_state\_dict\_post\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_load_state_dict_post_hook
 
register\_load\_state\_dict\_pre\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_load_state_dict_pre_hook
 
register\_module
~~~~~~~~~~~~~~~~

.. autofunction:: register_module
 
register\_parameter
~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_parameter
 
register\_state\_dict\_post\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_state_dict_post_hook
 
register\_state\_dict\_pre\_hook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_state_dict_pre_hook
 
requires\_grad\_
~~~~~~~~~~~~~~~~

.. autofunction:: requires_grad_
 
rescale\_outputs
~~~~~~~~~~~~~~~~

.. autofunction:: rescale_outputs
 
save\_to\_state\_dict
~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: save_to_state_dict
 
scale\_inputs
~~~~~~~~~~~~~

.. autofunction:: scale_inputs
 
set\_extra\_state
~~~~~~~~~~~~~~~~~

.. autofunction:: set_extra_state
 
set\_shift\_values
~~~~~~~~~~~~~~~~~~

.. autofunction:: set_shift_values
 
set\_submodule
~~~~~~~~~~~~~~

.. autofunction:: set_submodule
 
setup
~~~~~

.. autofunction:: setup
 
share\_memory
~~~~~~~~~~~~~

.. autofunction:: share_memory
 
state\_dict
~~~~~~~~~~~

.. autofunction:: state_dict
 
to
~~

.. autofunction:: to
 
to\_empty
~~~~~~~~~

.. autofunction:: to_empty
 
train
~~~~~

.. autofunction:: train
 
type
~~~~

.. autofunction:: type
 
xpu
~~~

.. autofunction:: xpu
 
zero\_grad
~~~~~~~~~~

.. autofunction:: zero_grad





 
.. currentmodule:: do_mpc.approximateMPC.ApproxMPC

Attributes
----------
 

 
T\_destination
~~~~~~~~~~~~~~

.. autoattribute:: do_mpc.approximateMPC.ApproxMPC.T_destination
 
call\_super\_init
~~~~~~~~~~~~~~~~~

.. autoattribute:: do_mpc.approximateMPC.ApproxMPC.call_super_init
 
dump\_patches
~~~~~~~~~~~~~

.. autoattribute:: do_mpc.approximateMPC.ApproxMPC.dump_patches
 
settings
~~~~~~~~

.. autoattribute:: do_mpc.approximateMPC.ApproxMPC.settings
 
training
~~~~~~~~

.. autoattribute:: do_mpc.approximateMPC.ApproxMPC.training

