pub struct StepEnv<'a> {
pub gpu: &'a dyn GpuBackend,
pub stream: u64,
pub gdn: &'a [Vec<GdnState>],
pub max_blocks_per_seq: u32,
}Expand description
2026-09-28: What varies between two runs of one program.
Fields§
§gpu: &'a dyn GpuBackend2026-09-28: The backend.
stream: u642026-09-28: The stream the step runs (and is captured) on.
gdn: &'a [Vec<GdnState>]2026-09-28: Per layer, each row’s GDN state (row i = sequence i, padding rows
included); empty for a layer without one.
max_blocks_per_seq: u322026-09-28: AttnMetadataDev::max_blocks_per_seq of this step.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StepEnv<'a>
impl<'a> !RefUnwindSafe for StepEnv<'a>
impl<'a> Send for StepEnv<'a>
impl<'a> Sync for StepEnv<'a>
impl<'a> Unpin for StepEnv<'a>
impl<'a> !UnwindSafe for StepEnv<'a>
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