kd.nn.DummyModel

kd.nn.DummyModel#

class kauldron.modules.DummyModel(
inputs: typing.Annotated[typing.Any,
<object object at 0x76412092fb90>] | None = None,
parent: flax.linen.module.Module | flax.core.scope.Scope | flax.linen.module._Sentinel | None = <flax.linen.module._Sentinel object>,
name: str | None = None,
)[source]

Bases: flax.linen.module.Module

Empty model that ignores inputs and always produces a single logit of 42.

Can be useful as a placeholder model in a config, while working on and testing other parts such as the data pipeline.

inputs: kontext.Key | None = None
name: str | None = None
parent: flax.linen.module.Module | flax.core.scope.Scope | flax.linen.module._Sentinel | None = None
scope: Scope | None = None