提交 2718da3f authored 作者: orhanf's avatar orhanf

documentation added

上级 cdfa5e85
......@@ -79,7 +79,7 @@ garbage collection will keep all intermediate results' memory space to allow to
reuse them during the next call to the same Theano function, if they are of the
correct shape. The shape could change if the shapes of the inputs change.
.. unsafe_optimization:
.. _unsafe_optimization:
Unsafe optimization
===================
......
......@@ -54,6 +54,7 @@ Optimization FAST_RUN FAST_COMPILE
:term:`elemwise fusion` x
:term:`GPU transfer` x
:term:`local_log_softmax` x x
:term:`local_remove_all_assert`
========================================================= ========= ============ =============
......@@ -258,3 +259,13 @@ Optimization FAST_RUN FAST_COMPILE
It can happen due to rounding errors that the softmax probability of one value gets to 0.
Taking the log of 0 would generate -inf that will probably generate NaN later.
We return a closer answer.
local_remove_all_assert
This is an unsafe optimization.
For the fastest possible Theano, this optimization can be enabled by
setting ``optimizer_including=local_remove_all_assert`` which will
remove all assertions in the graph for checking user inputs are valid.
Use this optimization if you are sure everthing is valid in your graph.
See :ref:`unsafe_optimization`
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论