ronn-core 0.1.0

Core runtime engine for RONN - fundamental tensor operations, data types, and session management
Documentation

RONN Core Runtime Engine

This crate provides the foundational components of the RONN (Rust ONNX Neural Network) runtime, including tensor operations, model graph representation, and core execution interfaces.

Architecture

The core engine follows a layered architecture:

  • Types: Fundamental data structures for tensors, graphs, and metadata
  • Session: Management of inference sessions and resource isolation
  • Tensor: Multi-dimensional array operations with Candle integration
  • Graph: Model representation and manipulation utilities

Example

use ronn_core::{Tensor, DataType, TensorLayout};

// Create a 2x3 tensor with zeros
let tensor = Tensor::zeros(vec![2, 3], DataType::F32, TensorLayout::RowMajor)?;
assert_eq!(tensor.shape(), vec![2, 3]);
assert_eq!(tensor.numel(), 6);
# Ok::<(), Box<dyn std::error::Error>>(())