pub struct CompiledTwinCritic {
pub forward: CompiledGraph,
pub train: CompiledGraph,
pub q_grad: CompiledGraph,
pub train_meta: CriticTrainGraph,
pub q_grad_meta: CriticQGradGraph,
}Fields§
§forward: CompiledGraph§train: CompiledGraph§q_grad: CompiledGraph§train_meta: CriticTrainGraph§q_grad_meta: CriticQGradGraphImplementations§
Source§impl CompiledTwinCritic
impl CompiledTwinCritic
pub fn compile(session: &Session, bundle: &CriticGraphBundle) -> Self
pub fn set_weights(&mut self, weights: &WeightStore)
pub fn q_values(&mut self, state: &[f32], action: &[f32]) -> (f32, f32)
pub fn action_grad(&mut self, state: &[f32], action: &[f32]) -> Vec<f32>
Auto Trait Implementations§
impl !RefUnwindSafe for CompiledTwinCritic
impl !Sync for CompiledTwinCritic
impl !UnwindSafe for CompiledTwinCritic
impl Freeze for CompiledTwinCritic
impl Send for CompiledTwinCritic
impl Unpin for CompiledTwinCritic
impl UnsafeUnpin for CompiledTwinCritic
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