pub fn display<U, T>(
tensor: U,
f: &mut Formatter<'_>,
lr_elements_size: usize,
precision: usize,
show_backward: bool,
) -> ResultExpand description
Display a tensor.
ยงArguments
tensor: A reference to the tensor to be displayed.f: A reference to the formatter.lr_elements_size: Number of elements to display in left and right for each row and column.precision: Number of decimal places to display for floating point numbers.show_backward: A boolean indicating whether to display the gradient function of the tensor, currently only used in DiffTensor.