1

I want to change one element in tensor

Example:

let there be a variable

v = tf.Variable([1, 2, 3])

how do I change the value of element with index 1 in tensor v?

I wish: v[1] = v[1] * 15

Alexey
  • 11
  • 2

0 Answers0