提交 be838ed8 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

update_val is not guarenteed to have a type attribute.

上级 25e6df0f
...@@ -195,7 +195,7 @@ def rebuild_collect_shared(outputs, ...@@ -195,7 +195,7 @@ def rebuild_collect_shared(outputs,
store_into, store_into,
store_into.type, store_into.type,
update_val, update_val,
update_val.type)) getattr(update_val, 'type', None)))
err_sug = ('If the difference is related to the broadcast pattern,' err_sug = ('If the difference is related to the broadcast pattern,'
' you can call the' ' you can call the'
' tensor.unbroadcast(var, axis_to_unbroadcast[, ...])' ' tensor.unbroadcast(var, axis_to_unbroadcast[, ...])'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论