mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Cosmetic changes.
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
use crate::{Error, Result};
|
||||
pub struct Shape(pub(crate) Vec<usize>);
|
||||
|
||||
impl std::fmt::Debug for Shape {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", &self.dims())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&[usize; 1]> for Shape {
|
||||
fn from(dims: &[usize; 1]) -> Self {
|
||||
Self(dims.to_vec())
|
||||
|
Reference in New Issue
Block a user