Struct rust_bert::reformer::LayerState [−][src]
Expand description
Cache for Reformer attention layers
Stores the cached value of buckets and states to avoid recalculation (e.g. at each generation step)
Fields
prev_buckets: Option<Tensor>Cached buckets
prev_states: TensorCached states
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LayerState
impl Send for LayerState
impl !Sync for LayerState
impl Unpin for LayerState
impl UnwindSafe for LayerState
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
