pub struct BrowserCompiledGraph { /* private fields */ }Expand description
A graph compiled for a browser backend.
Implementations§
Source§impl BrowserCompiledGraph
impl BrowserCompiledGraph
pub fn device(&self) -> Device
pub fn set_param(&mut self, name: &str, data: &[f32])
Sourcepub fn run(&mut self, inputs: &[(&str, &[f32])]) -> Vec<Vec<f32>>
pub fn run(&mut self, inputs: &[(&str, &[f32])]) -> Vec<Vec<f32>>
Synchronous run (WebGL, CPU, or native WebGPU).
pub async fn run_async( &mut self, inputs: &[(&str, &[f32])], ) -> Result<Vec<Vec<f32>>, BrowserError>
Auto Trait Implementations§
impl !RefUnwindSafe for BrowserCompiledGraph
impl !Sync for BrowserCompiledGraph
impl !UnwindSafe for BrowserCompiledGraph
impl Freeze for BrowserCompiledGraph
impl Send for BrowserCompiledGraph
impl Unpin for BrowserCompiledGraph
impl UnsafeUnpin for BrowserCompiledGraph
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more