$ ./guess_the_languageAI & ML
AI & ML · hard · #25

How many trainable parameters does this layer have?

import torch.nn as nn
layer = nn.Linear(784, 128)
  1. 100,480
  2. 100,352
  3. 100,608
  4. 100,000
784 x 128 weights = 100,352 plus 128 biases = 100,480.
Play AI & ML ▸