vt::print#

template<typename T, size_t N>
void vt::print_tensor(const Tensor<T, N> &tensor, size_t dim, Shape<N> indices)#

Print the tensor. It is called iteratively to print the tensor for each row.

Parameters:
  • tensor – The tensor object.

  • dim – The dimension of the tensor.

  • indices – The indices of the tensor.

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

  • N – Number of dimensions of the tensor.

template<typename T, size_t N>
void vt::print(const Tensor<T, N> &tensor)#

Print the tensor.

Parameters:

tensor – The tensor object.

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

  • N – Number of dimensions of the tensor.