Packing the Digit Generator

Learning to CompressMedium+20 XP+20

Packing the Digit Generator

You train a variational autoencoder on 28×2828 \times 2828×28 greyscale digit images, flattened to 784784784 numbers each.

Every layer is fully connected. A fully connected layer from nnn inputs to mmm outputs has n×mn \times mn×m weights plus mmm biases, and activation functions have no parameters.

partlayershape
encoderhidden layer784→256784 \to 256784→256
encoderoutput layer256→256 \to256→ a centre and a spread for each of the 161616 code dimensions
decoderhidden layercode →256\to 256→256
decoderoutput layer256→784256 \to 784256→784

Training goes well. You now want a standalone program that produces brand-new digits on demand. You will package only the trained parts that this program actually needs in order to run.

How many trained parameters (weights plus biases) does the packaged generator contain?

Give the exact whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.