tensors
Utilities for manipulating numpy and pytorch tensors using a consistent API.
Classes
bool(x) -> bool
Functions
Concatenate multiple arrays along a specified dimension.
Returns a tensor containing the vectors which point from all of the points (with dimension of
n_dim
) in tensora
to all of the points in tensorb
.Converts an array-like object (either numpy or pytorch) into a numpy array.
Converts an array-like object (either numpy or pytorch) into a pytorch tensor.