提交 a07f4d4f authored 作者: Frederic's avatar Frederic

Updated comment.

上级 e5c1eb20
...@@ -25,7 +25,7 @@ AddConfigVar('floatX', ...@@ -25,7 +25,7 @@ AddConfigVar('floatX',
) )
AddConfigVar('warn_float64', AddConfigVar('warn_float64',
"If True, warn when a tensor variable with float64 dtype is" "Do an action when a tensor variable with float64 dtype is"
" created. They can't be run on the GPU with the current(old)" " created. They can't be run on the GPU with the current(old)"
" gpu back-end and are slow with gamer GPUs.", " gpu back-end and are slow with gamer GPUs.",
EnumStr('ignore', 'warn', 'raise', 'pdb'), EnumStr('ignore', 'warn', 'raise', 'pdb'),
......
...@@ -584,8 +584,8 @@ class TensorVariable(_tensor_py_operators, Variable): ...@@ -584,8 +584,8 @@ class TensorVariable(_tensor_py_operators, Variable):
index=index, name=name) index=index, name=name)
if (config.warn_float64 != 'ignore' and type.dtype == 'float64'): if (config.warn_float64 != 'ignore' and type.dtype == 'float64'):
msg = ('You are creating a TensorVariable ' msg = ('You are creating a TensorVariable '
'with float64 dtype. You requested this warning via ' 'with float64 dtype. You requested an action via '
'the Theano flag warn_float64=True.') 'the Theano flag warn_float64={ignore,warn,raise,pdb}.')
if config.warn_float64 == "warn": if config.warn_float64 == "warn":
# Get the user stack. We don't want function inside the # Get the user stack. We don't want function inside the
# tensor and gof directory to be shown to the user. # tensor and gof directory to be shown to the user.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论