Implement linear_forward(x, W, b) that performs the same computation as tinygrad.nn.Linear - namely
Shapes follow tinygrad's nn.Linear convention (same as PyTorch's):
x has shape (N, in_features)W has shape (out_features, in_features) (note the order!)b has shape (out_features,)The returned tensor must have shape (N, out_features).
@) on tensors, plus named methods that do the same thing.W is the transpose of what the math formula expects, so you will need to transpose it before multiplying. Tinygrad's transpose with no arguments swaps the last two dimensions by default.