Skip to main content

Crate feagi_npu_runtime

Crate feagi_npu_runtime 

Source
Expand description

§FEAGI Runtime Abstraction

Cross-platform runtime traits and implementations for neural processing.

This crate provides:

  • Traits (always available): Runtime, NeuronStorage, SynapseStorage
  • Std Implementation (behind std feature): StdRuntime for desktop/server
  • Embedded Implementation (behind embedded feature): EmbeddedRuntime for no_std

§Features

  • default = [] (traits only, no_std compatible)
  • std = Standard library runtime implementation (Vec-based, parallel)
  • embedded = Embedded runtime implementation (fixed arrays, no_std)
  • alloc = Heap allocation without std (for some trait methods)

§Usage

§Desktop/Server

[dependencies]
feagi-npu-runtime = { version = "2.0", features = ["std"] }
use feagi_npu_runtime::StdRuntime;
let runtime = StdRuntime::new();

§Embedded

[dependencies]
feagi-npu-runtime = { version = "2.0", features = ["embedded"], default-features = false }
use feagi_npu_runtime::embedded::EmbeddedRuntime;
let runtime = EmbeddedRuntime::new();

§Traits Only (for custom implementations)

[dependencies]
feagi-npu-runtime = { version = "2.0", default-features = false }
use feagi_npu_runtime::{Runtime, NeuronStorage, SynapseStorage};
// Implement your own runtime

Re-exports§

pub use traits::NeuronStorage;
pub use traits::Result;
pub use traits::Runtime;
pub use traits::RuntimeError;
pub use traits::SynapseStorage;

Modules§

traits
Runtime abstraction traits for cross-platform neural processing

Constants§

RUNTIME_TRAIT_VERSION
Version of the runtime trait API
VERSION
Crate version from Cargo.toml

Traits§

NeuralValue
Trait for neural computation values

Functions§

runtime_trait_version
Get the runtime trait API version