pub struct NeuralBridge { /* private fields */ }
Expand description
Main integration interface between CUDA-WASM and ruv-FANN
Implementations§
Source§impl NeuralBridge
impl NeuralBridge
Sourcepub fn new() -> NeuralResult<Self>
pub fn new() -> NeuralResult<Self>
Create a new neural bridge with default configuration
Sourcepub fn with_config(config: BridgeConfig) -> NeuralResult<Self>
pub fn with_config(config: BridgeConfig) -> NeuralResult<Self>
Create a new neural bridge with custom configuration
Sourcepub fn is_gpu_available(&self) -> bool
pub fn is_gpu_available(&self) -> bool
Check if GPU acceleration is available
Sourcepub fn get_device_info(&self) -> Option<DeviceInfo>
pub fn get_device_info(&self) -> Option<DeviceInfo>
Get device information
Sourcepub fn transpile_cuda_kernel(
&self,
cuda_source: &str,
) -> NeuralResult<CompiledKernel>
pub fn transpile_cuda_kernel( &self, cuda_source: &str, ) -> NeuralResult<CompiledKernel>
Transpile CUDA kernel to WGSL
Sourcepub fn execute_neural_operation<T>(
&self,
operation: NeuralOperation<T>,
inputs: &[T],
) -> NeuralResult<Vec<T>>
pub fn execute_neural_operation<T>( &self, operation: NeuralOperation<T>, inputs: &[T], ) -> NeuralResult<Vec<T>>
Execute a neural operation with automatic optimization
Sourcepub fn get_memory_stats(&self) -> MemoryStats
pub fn get_memory_stats(&self) -> MemoryStats
Get memory statistics
Sourcepub fn get_performance_stats(&self) -> PerformanceStats
pub fn get_performance_stats(&self) -> PerformanceStats
Get performance statistics
Sourcepub fn create_batch_processor(&self) -> BatchProcessor
pub fn create_batch_processor(&self) -> BatchProcessor
Create a batch processor for efficient bulk operations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NeuralBridge
impl !RefUnwindSafe for NeuralBridge
impl Send for NeuralBridge
impl Sync for NeuralBridge
impl Unpin for NeuralBridge
impl !UnwindSafe for NeuralBridge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more