Skip to content
heliaEDGE
Reference
HELIA

mask_autoencoder

Masked reconstruction with portable computation and explicit TF/Torch steps.

Machine-readable model

  • ReconstructionclassMasked target patches and their corresponding predicted patches.
  • ReconstructionLossclassReconstruction objective together with the patches used to compute it.
  • MaskedAutoencoderclassMasked reconstruction with Keras fit() and independently callable objectives.
class

Reconstruction objective together with the patches used to compute it.

helia_edge/trainers/mask_autoencoder.py:30

ReconstructionLoss()

Reconstruction objective together with the patches used to compute it.

class

Masked reconstruction with Keras fit() and independently callable objectives.

helia_edge/trainers/mask_autoencoder.py:51

MaskedAutoencoder(
patch_layer: Callable[[Array], Tensor],
patch_encoder: Callable[[Array], tuple[Tensor, Tensor, Tensor, Tensor, Tensor]],
encoder: keras.Model,
decoder: keras.Model,
**kwargs: Any = {},
) -> None

Masked reconstruction with Keras fit() and independently callable objectives.

call() returns (targets, predictions). training controls layer state, not masks. See https://ambiqai.github.io/helia-edge/getting-started/backends/ for serialization, native-loop use and support limits.

method

Return (compiled total loss, targets, predictions); preserve the old API.

helia_edge/trainers/mask_autoencoder.py:90

calculate_loss(x: Array, test: bool = False) -> ReconstructionLoss

Return (compiled total loss, targets, predictions); preserve the old API.