vt::save#

template<typename T, size_t N>
void vt::save(const std::string &filename, const Tensor<T, N> &tensor)#

Save tensor to a file.

Template Parameters:
  • T – Data type of the tensor.

  • N – Number of dimensions of the tensor.

Parameters:
  • filename – Name of the file.

  • tensorTensor to be saved.