Write your own layer: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

21 October 2025

  • curprev 14:5014:50, 21 October 2025 Davrot talk contribs 4,682 bytes +4,682 Created page with "Questions to [mailto:davrot@uni-bremen.de David Rotermund] == Writing a layer based on linear == I am rewriting the code for [https://pytorch.org/docs/stable/_modules/torch/nn/modules/linear.html#Linear Linear] as my own layer. __init__(): It contains a tensor for the weights and optionally a second tensor for the bias. Both tensors are wrapped within the torch.nn.Parameter class. This is necessary, otherwise the optimizer will not find them. Afterwards the tensors wil..." Tag: Visual edit