pub struct SemanticPolicyFieldLayout {
pub embeddings: Range<usize>,
pub biases: Range<usize>,
pub cardinality: usize,
pub null_category: Option<usize>,
}Expand description
FP32 element ranges for one field in the native policy parameter snapshot. NULL is a category, but has no stored embedding row. The action-class field has no NULL: its category zero is the trainable no-edit action.
Fields§
§embeddings: Range<usize>§biases: Range<usize>§cardinality: usize§null_category: Option<usize>Trait Implementations§
Source§impl Clone for SemanticPolicyFieldLayout
impl Clone for SemanticPolicyFieldLayout
Source§fn clone(&self) -> SemanticPolicyFieldLayout
fn clone(&self) -> SemanticPolicyFieldLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticPolicyFieldLayout
impl Debug for SemanticPolicyFieldLayout
impl Eq for SemanticPolicyFieldLayout
impl StructuralPartialEq for SemanticPolicyFieldLayout
Auto Trait Implementations§
impl Freeze for SemanticPolicyFieldLayout
impl RefUnwindSafe for SemanticPolicyFieldLayout
impl Send for SemanticPolicyFieldLayout
impl Sync for SemanticPolicyFieldLayout
impl Unpin for SemanticPolicyFieldLayout
impl UnsafeUnpin for SemanticPolicyFieldLayout
impl UnwindSafe for SemanticPolicyFieldLayout
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more