pub struct GraphOptSpec<'a> {
pub optimize: &'a [&'a str],
pub values: HashMap<String, f32>,
pub bounds: HashMap<String, (f32, f32)>,
pub inputs: &'a [(&'a str, &'a [f32])],
}Expand description
Parameter bundle for adam_opt_graph.
Fields§
§optimize: &'a [&'a str]Names optimized by Adam (must be Op::Param in fwd).
values: HashMap<String, f32>Initial values for all params referenced by the graph (optimized + frozen).
bounds: HashMap<String, (f32, f32)>Per-coordinate bounds (only required for optimized names).
inputs: &'a [(&'a str, &'a [f32])]Forward inputs (e.g. ("freq_hz", &[2.4e9])). d_output is injected automatically.
Auto Trait Implementations§
impl<'a> Freeze for GraphOptSpec<'a>
impl<'a> RefUnwindSafe for GraphOptSpec<'a>
impl<'a> Send for GraphOptSpec<'a>
impl<'a> Sync for GraphOptSpec<'a>
impl<'a> Unpin for GraphOptSpec<'a>
impl<'a> UnsafeUnpin for GraphOptSpec<'a>
impl<'a> UnwindSafe for GraphOptSpec<'a>
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