Files
rustytorch/demos/inference-profiler-shared/src/lib.rs
T
2026-03-04 00:08:42 +00:00

21 lines
601 B
Rust

//! Shared types for `RustyTorch`++ Inference Profiler demo.
//!
//! This crate provides the common types and IPC protocol for communication
//! between the profiler backend and UI frontend.
#![forbid(unsafe_code)]
#![warn(missing_docs)]
pub mod config;
pub mod error;
pub mod ipc;
pub mod metrics;
pub mod results;
// Re-export commonly used types
pub use config::{DeviceType, InputShape, ModelType, ProfileConfig};
pub use error::ProfilerError;
pub use ipc::{ProfilerRequest, ProfilerResponse};
pub use metrics::{LatencyMetrics, MemoryMetrics, ThroughputMetrics};
pub use results::ProfileResult;