Slicing a tensor by using indices in Tensorflow

断了今生、忘了曾经 提交于 2019-11-30 20:18:45

Indeed, TensorFlow now has better support for slicing, so you can use the exact same syntax as NumPy:

result = noise_spec[:rows, :cols]

found out, it's

tf.slice(noise_spec, [0,0],[rows, cols])
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!