The input tensor whose slices are to be gathered.
The indices of the values to extract.
Optional
axis: numberThe axis over which to select values. Defaults to 0.
Optional
batchDims: numberOptional. The number of batch dimensions. It must be less
than or equal to rank(indices). Defaults to 0.
The output tensor will have shape of
x.shape[:axis] + indices.shape[batchDims:] + x.shape[axis + 1:]
Generated using TypeDoc
Gather slices from tensor
x
's axisaxis
according toindices
.