35 lines
1.0 KiB
Rust
35 lines
1.0 KiB
Rust
//! Shared types for `RustyTorch`++ neural operator demo IPC
|
|
//!
|
|
//! This crate provides all shared data structures for communication between
|
|
//! the Tauri frontend and `RustyTorch`++ backend in the Neural Operator demo.
|
|
//!
|
|
//! # Modules
|
|
//!
|
|
//! - [`ipc`]: Inter-process communication message types
|
|
//! - [`config`]: PDE configuration types
|
|
//! - [`error`]: Error types for the demo
|
|
//!
|
|
//! # Example
|
|
//!
|
|
//! ```rust
|
|
//! use rtx_neural_operator_shared::config::{PDEType, PDEConfig};
|
|
//! use rtx_neural_operator_shared::ipc::{NeuralOperatorRequest, NeuralOperatorResponse};
|
|
//!
|
|
//! // Create a Darcy flow configuration
|
|
//! let config = PDEConfig::darcy(64);
|
|
//!
|
|
//! // Create initialization request
|
|
//! let request = NeuralOperatorRequest::initialize(config);
|
|
//! ```
|
|
|
|
#![forbid(unsafe_code)]
|
|
#![warn(missing_docs)]
|
|
|
|
pub mod config;
|
|
pub mod error;
|
|
pub mod ipc;
|
|
|
|
pub use config::{PDEConfig, PDEType};
|
|
pub use error::{NeuralOperatorError, Result};
|
|
pub use ipc::{NeuralOperatorRequest, NeuralOperatorResponse, PerformanceMetrics, SolutionData};
|