AutoEncoder

class deepinv.models.AutoEncoder(dim_input, dim_mid=1000, dim_hid=32, residual=True)[source]

Bases: Module

Simple fully connected autoencoder network.

Simple architecture that can be used for debugging or fast prototyping.

Parameters:
  • dim_input (int) – total number of elements (pixels) of the input.

  • dim_hid (int) – number of features in intermediate layer.

  • dim_hid – latent space dimension.

  • residual (int) – use a residual connection between input and output.

forward(x, sigma=None)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.