Compute the affine transform of a fully-connected layer: y = x @ W.T + b, where x is (batch, in_features), W is (out_features, in_features), and b is (out_features,).
y = x @ W.T + b
x
(batch, in_features)
W
(out_features, in_features)
b
(out_features,)
solve(...)