LinearNetModel
LinearNetModel.forward()
Bases: Module
Module
Simple Linear Regression Model
input_dim (int) – Number of model input features.
bias – Whether to include a bias term in the linear layer.
Forward pass of the model. Applies a linear transformation without any activation, returning the raw output.
x (torch.Tensor) – Input tensor of shape (batch_size, input_dim).
Output tensor of shape (batch_size,).
torch.Tensor