Rework the debug trait.

This commit is contained in:
laurent
2023-06-27 19:10:30 +01:00
parent d28bf64ed6
commit 1d504cc6b3
3 changed files with 449 additions and 6 deletions

View File

@ -44,12 +44,6 @@ impl std::ops::Deref for Tensor {
}
}
impl std::fmt::Debug for Tensor {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "[{:?}, {:?}]", &self.shape().dims(), self.device())
}
}
macro_rules! unary_op {
($fn_name:ident, $op_name:ident) => {
pub fn $fn_name(&self) -> Result<Self> {