trustformers-core 0.1.1

Core traits and utilities for TrustformeRS
Documentation
1
2
3
4
5
6
7
8
9
10
//! Hardware interfaces for neuromorphic platforms

use crate::neuromorphic::{spiking_networks::SpikingNeuralNetwork, NeuromorphicConfig};
use anyhow::Result;

/// Trait for neuromorphic hardware interfaces
pub trait NeuromorphicHardware: std::fmt::Debug {
    fn deploy_network(&mut self, name: &str, network: &SpikingNeuralNetwork) -> Result<()>;
    fn configure_platform(&mut self, config: &NeuromorphicConfig) -> Result<()>;
}