mr2.nn.CondMixin

class mr2.nn.CondMixin[source]

Bases: Module

Mixin for modules using a conditioning.

Used to determine if a module uses a conditioning within a Sequential container.

__call__(x: Tensor, *, cond: Tensor | None = None) → Tensor[source]

Apply the module to the input.