mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 02:58:50 +00:00
Move the StridedIndex in its own module.
This commit is contained in:
@ -232,8 +232,8 @@ impl Tensor {
|
||||
Ok(Self(Arc::new(tensor_)))
|
||||
}
|
||||
|
||||
pub(crate) fn strided_index(&self) -> crate::storage::StridedIndex {
|
||||
crate::storage::StridedIndex::new(self.dims(), self.stride())
|
||||
pub(crate) fn strided_index(&self) -> crate::StridedIndex {
|
||||
crate::StridedIndex::new(self.dims(), self.stride())
|
||||
}
|
||||
|
||||
pub fn to_vec1<S: crate::WithDType>(&self) -> Result<Vec<S>> {
|
||||
|
Reference in New Issue
Block a user