I try slicing a tensor using the tf.Tensor.getitem function as below:
indices = [0, 5]
data[:,:,indices]
But I get the following error:
TypeError: can only concatenate list (not "int") to list.
Is there something I am doing wrong?
You can try the following:
data[:, :, 0:6]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With