kaira.models.generic.IdentityModel

Inheritance diagram for IdentityModel
- class kaira.models.generic.IdentityModel[source]
Bases:
BaseModelIdentity Model.
This model returns the input tensor without any modifications. It can be used as a baseline model or as a placeholder in model pipelines.
Example
>>> model = IdentityModel() >>> x = torch.randn(5, 10) >>> output = model(x) >>> assert torch.allclose(x, output)
Methods
Initialize the IdentityModel.
Forward pass through the model.