olm.nn.structure¶
class olm.nn.structure.Block(*args: Any, **kwargs: Any)¶
Bases: Module
Lightweight sequential container for composable submodules.
Similar to nn.Sequential, but exposes the underlying list for
inspection or dynamic manipulation by higher-level builders.
- Parameters: blocks – Ordered list of modules applied to the input in sequence.
blocks¶
ModuleList storing the ordered blocks.
forward(x: torch.Tensor) → torch.Tensor¶
Apply each block to the input in sequence.
- Parameters: x – Input tensor.
- Returns: Output tensor after all blocks have been applied.
Modules¶
block |
|
|---|---|
combinators |