Skip to content

Array ops

Function Description
broadcast() Make the shape broadcastable between arrays src and other.
expand() Expand the dimensions of an array to a new shape.
one_hot() Creates one-hot encoded vectors for all elements provided in labels.
pairwise_distances() Compute pairwise distances between points in vectors x and y.
index_to_mask() Converts indices to a mask representation.