We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x_shape, axis, indices = ((3, 3, 2), 1 , (0,2)) x = np.arange(np.prod(x_shape)).reshape(x_shape) indices_tp = tp.Tensor(indices) a = tp.Tensor(x) out = tp.gather(a, axis, indices_tp) print(out) # throws exception data = tp.iota((3, 3, 2)) indices = tp.Tensor([0, 2], dtype=tp.int32) output = tp.gather(data, 1, indices) print(output) # passes
The following works fine though:
x_shape, axis, indices = ((2, 3), 0, (1)) x = np.arange(np.prod(x_shape)).reshape(x_shape) indices_tp = tp.Tensor(indices) a = tp.Tensor(x) out = tp.gather(a, axis, indices_tp) print(out)
The text was updated successfully, but these errors were encountered:
Issue is related to int64 not yet being supported. Should be fixed along with #116
Sorry, something went wrong.
parthchadha
Mgluhovskoi
No branches or pull requests
The following works fine though:
The text was updated successfully, but these errors were encountered: