tf.assign

2017-06-21  本文已影响0人  Niling

assign(
ref,
value,
validate_shape=None,
use_locking=None,
name=None
)

Defined in tensorflow/python/ops/state_ops.py.

将 value 赋值给 ref,并输出 ref

这使得需要使用复位值的连续操作变简单

Defined in tensorflow/python/framework/tensor_shape.py.

Args :

Returns :
Same as "ref". Returned as a convenience for operations that want to use the new value after the variable has been reset.



上一篇 下一篇

猜你喜欢

热点阅读