@@ -16,47 +16,67 @@ The descriptions are brief and point to further reading.
...
@@ -16,47 +16,67 @@ The descriptions are brief and point to further reading.
If you would like to add an additional optimization, refer to
If you would like to add an additional optimization, refer to
:ref:`optimization` in the guide to extending Theano.
:ref:`optimization` in the guide to extending Theano.
When compiling, we can make a tradeoff between compile-time and run-time.
Faster compile times will result in fewer optimizations being applied, hence generally slower run-times.
For making this tradeoff when compiling, we provide a set of 4 optimization modes, 'o1' to 'o4', where 'o1' leads to fastest compile-time and 'o4' leads to fastest run-time in general.
For an even faster run-time, we could disable assertions (which could be time comsuming) for valid user inputs, using the optimization mode 'unsafe', but this is, as the name suggests, unsafe.
(Also see note at :ref:`unsafe_optimization`.)
.. note::
.. note::
This list is partial.
This list is partial.
The print_summary method allows several OpDBs and optimizers to list the executed optimizations.
The print_summary method allows several OpDBs and optimizers to list the
This makes it possible to have an up-to-date list.
executed optimizations. This makes it possible to have an up-to-date list.