pub struct CompiledFlowMapAgent {
pub forward: CompiledGraph,
pub velocity: CompiledGraph,
pub offline: CompiledGraph,
pub online: CompiledGraph,
pub offline_meta: ActorTrainGraph,
pub online_meta: ActorTrainGraph,
}Fields§
§forward: CompiledGraph§velocity: CompiledGraph§offline: CompiledGraph§online: CompiledGraph§offline_meta: ActorTrainGraph§online_meta: ActorTrainGraphImplementations§
Source§impl CompiledFlowMapAgent
impl CompiledFlowMapAgent
pub fn compile(session: &Session, bundle: &ActorGraphBundle) -> Self
pub fn set_weights(&mut self, weights: &WeightStore)
Sourcepub fn velocity(
&mut self,
state: &[f32],
a_r: &[f32],
r: f32,
t: f32,
) -> Vec<f32>
pub fn velocity( &mut self, state: &[f32], a_r: &[f32], r: f32, t: f32, ) -> Vec<f32>
Average velocity (u_{r,t}(a_r|s)) (Python actor_bc_flow output).
pub fn one_step(&mut self, state: &[f32], a0: &[f32]) -> Vec<f32>
pub fn jump(&mut self, state: &[f32], a_r: &[f32], r: f32, t: f32) -> Vec<f32>
Auto Trait Implementations§
impl !RefUnwindSafe for CompiledFlowMapAgent
impl !Sync for CompiledFlowMapAgent
impl !UnwindSafe for CompiledFlowMapAgent
impl Freeze for CompiledFlowMapAgent
impl Send for CompiledFlowMapAgent
impl Unpin for CompiledFlowMapAgent
impl UnsafeUnpin for CompiledFlowMapAgent
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