read_tensor/read_tensor.rs
1use ferrotensor_loader::WeightsContext;
2
3fn main() {
4 let _ctx = WeightsContext::new();
5 // Assuming a file exists or just demonstrating the API
6 println!("WeightsContext created.");
7
8 // Note: In a real scenario, we'd call ctx.load_file("path/to/model.safetensors")
9 println!("API Usage: ctx.load_file(path), then ctx.read_bytes(name, callback)");
10}