| Crates.io | ndtensor |
| lib.rs | ndtensor |
| version | 0.1.1 |
| created_at | 2024-04-13 20:48:05.011599+00 |
| updated_at | 2025-06-30 10:26:55.978585+00 |
| description | An n-dimensional tensor |
| homepage | https://github.com/FL03/ndtensor/wiki |
| repository | https://github.com/FL03/ndtensor.git |
| max_upload_size | |
| id | 1207816 |
| size | 106,314 |
Warning: The library still in development and is not yet ready for production use.
Note: It is important to note that a primary consideration of the ndtensor framework is ensuring compatibility in two key areas:
autodiff: the upcoming feature enabling rust to natively support automatic differentiation.ndarray: The crate is designed around the ndarray crate, which provides a powerful N-dimensional array type for RustParamsBase: Design a basic structure for storing model parameters.Forward and Backward: traits defining forward and backward propagationModel: A trait for defining a neural network model.Predict: A trait extending the basic Forward pass.Train: A trait for training a neural network model.Trainer: A generic model trainer that can be used to train any model.LayerBase: functional wrappers for the ParamsBase structure.To use ndtensor in your project, add the following to your Cargo.toml:
[dependencies.ndtensor]
features = ["full"]
version = "0.1.x"
To use ndtensor, you need to have the following installed:
You can install the rustup toolchain using the following command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
After installing rustup, you can install the latest stable version of Rust with:
rustup install stable
You can also install the latest nightly version of Rust with:
rustup install nightly
Start by cloning the repository
git clone https://github.com/FL03/ndtensor.git
Then, navigate to the ndtensor directory:
cd ndtensor
cargo toolTo build the crate, you can use the cargo tool. The following command will build the crate with all features enabled:
cargo build -r --locked --workspace --features full
To run the tests, you can use the following command:
cargo test -r --locked --workspace --features full
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.