小编sho*_*eta的帖子

用值填充张量中的特定索引

我是tensorflow的初学者。我创建了这个张量

z = tf.zeros([20,2], tf.float32)
Run Code Online (Sandbox Code Playgroud)

我想改变指数的值z[2,1],并z[2,2]1.0代替零。我怎样才能做到这一点?

python arrays machine-learning variable-assignment tensorflow

3
推荐指数
1
解决办法
4302
查看次数