| Crates.io | torsh-core |
| lib.rs | torsh-core |
| version | 0.1.0-alpha.2 |
| created_at | 2025-09-29 23:42:03.827772+00 |
| updated_at | 2025-12-22 04:32:35.634286+00 |
| description | Core types and traits for ToRSh deep learning framework |
| homepage | https://github.com/cool-japan/torsh/ |
| repository | https://github.com/cool-japan/torsh/ |
| max_upload_size | |
| id | 1860397 |
| size | 2,493,338 |
Core types and traits for the ToRSh deep learning framework.
This crate provides the fundamental building blocks used throughout ToRSh:
std (default): Standard library supportno_std: No standard library (for embedded targets)serialize: Serialization support via serdeuse torsh_core::prelude::*;
// Create a shape
let shape = Shape::new(vec![2, 3, 4]);
println!("Shape: {}, elements: {}", shape, shape.numel());
// Device management
let device = CpuDevice;
println!("Device: {}", device.name());
// Data types
let dtype = DType::F32;
println!("Data type: {}, size: {} bytes", dtype, dtype.size());
This crate builds on top of scirs2 for core scientific computing functionality, providing a PyTorch-compatible API layer.
Licensed under either of
at your option.