提交 35c4e884 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Added warning in doc about the risks of messing with config.cast_policy

上级 7c94a2ea
...@@ -168,6 +168,9 @@ import theano and print the config variable, as in: ...@@ -168,6 +168,9 @@ import theano and print the config variable, as in:
to a set of custom rules originally used in Theano (which can be partially to a set of custom rules originally used in Theano (which can be partially
customized, see e.g. the in-code help of ``tensor.NumpyAutocaster``). The customized, see e.g. the in-code help of ``tensor.NumpyAutocaster``). The
'custom' option will be deprecated in a future release of Theano. 'custom' option will be deprecated in a future release of Theano.
**Until further notice, it is strongly advised to never change this option
within a script, and to always clean your Theano cache whenever you modify its
value**.
.. attribute:: int_division .. attribute:: int_division
......
...@@ -16,7 +16,7 @@ AddConfigVar('floatX', ...@@ -16,7 +16,7 @@ AddConfigVar('floatX',
) )
AddConfigVar('cast_policy', AddConfigVar('cast_policy',
"Rules for implicit type casting", "Rules for implicit type casting (until further notice, do not modify within a script, and clear your Theano cache whenever it is modified)",
EnumStr('custom', 'numpy+floatX', 'numpy'), EnumStr('custom', 'numpy+floatX', 'numpy'),
) )
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论