pub struct AI3Engine {
pub task_distributor: TaskDistributor,
/* private fields */
}Expand description
Main AI3 Engine – coordinates tensor operations and mining tasks. Ported from .AI3 ai3-lib with PoT-O extensions.
Fields§
§task_distributor: TaskDistributorImplementations§
Source§impl AI3Engine
impl AI3Engine
pub fn new() -> Self
pub fn with_config(config: EngineConfig) -> Self
Sourcepub fn execute_task(&self, task: &MiningTask) -> TribeResult<Tensor>
pub fn execute_task(&self, task: &MiningTask) -> TribeResult<Tensor>
Execute a tensor operation from a mining task and return the result tensor.
pub fn get_stats(&self) -> EngineStats
pub fn record_result(&self, success: bool, duration: Duration)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AI3Engine
impl RefUnwindSafe for AI3Engine
impl Send for AI3Engine
impl Sync for AI3Engine
impl Unpin for AI3Engine
impl UnsafeUnpin for AI3Engine
impl UnwindSafe for AI3Engine
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