我尝试使用tf.Tensor切片张量.getitem功能如下:
indices = [0, 5] data[:,:,indices]
但是我收到以下错误:
TypeError:只能将列表(不是"int")连接到列表.
有什么我做错了吗?
python indexing tensorflow
indexing ×1
python ×1
tensorflow ×1