Improve debug formatting of tensors by adding a custom Debug impl instead of using the derived one. The derived impl has been completely useless since views were changed to use custom storage types instead of slices. In the process an issue was resolved where the Clone impl for tensor iterators had an unnecessary T: Clone bound (where T is the element type).
For the expression NdTensor::full([2, 5, 5], 1.).view():
Improve debug formatting of tensors by adding a custom
Debug
impl instead of using the derived one. The derived impl has been completely useless since views were changed to use custom storage types instead of slices. In the process an issue was resolved where the Clone impl for tensor iterators had an unnecessaryT: Clone
bound (whereT
is the element type).For the expression
NdTensor::full([2, 5, 5], 1.).view()
:Before:
After: