Initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
//! 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};
|
||||
Reference in New Issue
Block a user