pub struct ActionOutput {
pub actions: TensorData,
pub log_probs: TensorData,
}Expand description
Action output from a policy.
Fields§
§actions: TensorDataActions: [batch_size] for discrete, [batch_size, act_dim] for continuous.
log_probs: TensorDataLog-probabilities of the selected actions: [batch_size].
Trait Implementations§
Source§impl Clone for ActionOutput
impl Clone for ActionOutput
Source§fn clone(&self) -> ActionOutput
fn clone(&self) -> ActionOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ActionOutput
impl RefUnwindSafe for ActionOutput
impl Send for ActionOutput
impl Sync for ActionOutput
impl Unpin for ActionOutput
impl UnwindSafe for ActionOutput
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