Array ops

Array ops#

broadcast(src, other, dim)

Make the shape broadcastable between arrays src and other.

expand(array, new_shape)

Expand the dimensions of an array to a new shape.

one_hot(labels[, num_classes])

Creates one-hot encoded vectors for all elements provided in labels.

pairwise_distances(x, y)

Compute pairwise distances between points in vectors x and y.

index_to_mask(index[, size])

Converts indices to a mask representation.