你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
tensorflow - CaffeCN社区Tensorflow主题站管理员 http://tensorflow.caffecn.cn
赞同来自:
def assign(self, value, use_locking=False): """Assigns a new value to the variable. This is essentially a shortcut for `assign(self, value)`. Args: value: A `Tensor`. The new value for this variable. use_locking: If `True`, use locking during the assignment. Returns: A `Tensor` that will hold the new value of this variable after the assignment has completed. """
要回复问题请先登录或注册
1 个回复
tensorflow - CaffeCN社区Tensorflow主题站管理员 http://tensorflow.caffecn.cn
赞同来自:
直接赋值会报 TypeError: 'Tensor' object does not support item assignment
tensorflow里面提供了assign()函数,注意被赋值的应该是一个tensor变量