pub struct RecurrentStateTensorSpec {
pub layer_index: usize,
pub name: String,
pub shape: Vec<usize>,
pub dtype: DataType,
}Expand description
A single recurrent-state tensor owned by a model layer.
Fields§
§layer_index: usizeLayer index that owns this state tensor.
name: StringBackend/model-local state name, for example delta_state.
shape: Vec<usize>Tensor shape excluding any request/batch slot dimension.
dtype: DataTypeStorage dtype for this state tensor.
Implementations§
Trait Implementations§
Source§impl Clone for RecurrentStateTensorSpec
impl Clone for RecurrentStateTensorSpec
Source§fn clone(&self) -> RecurrentStateTensorSpec
fn clone(&self) -> RecurrentStateTensorSpec
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 RecurrentStateTensorSpec
impl Debug for RecurrentStateTensorSpec
Source§impl<'de> Deserialize<'de> for RecurrentStateTensorSpec
impl<'de> Deserialize<'de> for RecurrentStateTensorSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RecurrentStateTensorSpec
Source§impl PartialEq for RecurrentStateTensorSpec
impl PartialEq for RecurrentStateTensorSpec
Source§impl Serialize for RecurrentStateTensorSpec
impl Serialize for RecurrentStateTensorSpec
impl StructuralPartialEq for RecurrentStateTensorSpec
Auto Trait Implementations§
impl Freeze for RecurrentStateTensorSpec
impl RefUnwindSafe for RecurrentStateTensorSpec
impl Send for RecurrentStateTensorSpec
impl Sync for RecurrentStateTensorSpec
impl Unpin for RecurrentStateTensorSpec
impl UnsafeUnpin for RecurrentStateTensorSpec
impl UnwindSafe for RecurrentStateTensorSpec
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