提交 691ec080 authored 作者: Frederic Bastien's avatar Frederic Bastien

Added an optimization warning in case we implement more case in the futur.

上级 c4473921
......@@ -291,6 +291,13 @@ def local_0_dot_x(node):
return [T.alloc(constant_zero, x.shape[0])]
elif x.ndim == 1 and y.ndim == 1:
return [constant_zero]
else:
_logger.warning(("OPTIMIZATION WARNING: "
"Optimization theano/opt.py:local_0_dot_x "
"Found that it could apply bug was not implemented"
"for this input to dot:\n"
"(%s,%s)") % (x.type, y.type))
######################
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论