我爱编程

TensorFlow学习笔记1.8:tf.assign()

2018-04-14  本文已影响726人  HBU_DAVID

assign: 赋值

Update 'ref' by assigning 'value' to it.
通过给它赋值来更新“ref”。
This operation outputs a Tensor that holds the new value of 'ref' after the value has been assigned.
这个操作输出一个张量,这个张量在赋值之后获取“ref”的新值。
This makes it easier to chain operations that need to use the reset value.
这使得需要使用重置值的链式操作更加容易。

tf.assign(
    ref,    value,    validate_shape=None,    use_locking=None,    name=None
)
上一篇 下一篇

猜你喜欢

热点阅读