Functional Layers

Contents

Functional Layers#

linear_forward#

def linear_forward(x: nabla.core.tensor.Tensor, weight: nabla.core.tensor.Tensor, bias: nabla.core.tensor.Tensor | None = None) -> nabla.core.tensor.Tensor:

Forward pass through a linear layer.