TensorFlow - numpy-like tensor indexing

后端 未结 3 1548
猫巷女王i
猫巷女王i 2020-11-30 03:24

In numpy, we can do this:

x = np.random.random((10,10))
a = np.random.randint(0,10,5)
b = np.random.randint(0,10,5)
x[         


        
3条回答
  •  萌比男神i
    2020-11-30 03:45

    LDGN's comment is correct. This is not possible at the moment, and is a requested feature. If you follow issue#206 on github you'll get updated if/when this is available. Many people would like this feature.

提交回复
热议问题