vt::load#
-
template<typename T, size_t N, xt::layout_type L>
Tensor<T, N> vt::load(const std::string &filename)# Load tensor from a file.
- Template Parameters:
T – Data type of the tensor.
N – Number of dimensions of the tensor.
L – Layout type of the tensor.
- Parameters:
filename – Name of the file.
- Returns:
Tensor<T, N>: The tensor loaded from the file.