Tensorflow: how to change specific values in tensor?

前端 未结 0 1718
谎友^
谎友^ 2020-12-25 14:44

I have the following code

aa = tf.zeros([10, 4, 240, 240, 1])
aa[:, :, 10:20, 5:15, :] = 1

However, this does not work.

I know that nu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题