Skip to content

Commit

Permalink
refactor(tensor): crate 项目结构压平
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <ydrml@hotmail.com>
YdrMaster committed Mar 1, 2024
1 parent af02063 commit 57a9265
Showing 7 changed files with 8 additions and 11 deletions.
File renamed without changes.
12 changes: 8 additions & 4 deletions tensor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
mod broadcast;
mod data_type;
mod fmt;
mod pattern;
mod reshape;
mod slice;
mod split;
mod tensor;
mod transform;
mod transpose;

#[allow(non_camel_case_types)]
pub type udim = u32;

#[allow(non_camel_case_types)]
pub type idim = i32;

use std::mem::{align_of, size_of, size_of_val};

pub use data_type::DataType;
pub use nalgebra::DVector;
pub use pattern::{expand_indices, idx_strides, Affine, Shape};
pub use slice::SliceDim;
pub use tensor::{Storage, Tensor};
pub use transform::SliceDim;

use std::mem::{align_of, size_of, size_of_val};

pub fn reslice<T, U>(src: &[T]) -> &[U] {
let ptr = src.as_ptr_range();
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions tensor/src/transform/mod.rs

This file was deleted.

File renamed without changes.

0 comments on commit 57a9265

Please sign in to comment.