mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Rework the debug trait.
This commit is contained in:
@ -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> {
|
||||
|
Reference in New Issue
Block a user