Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ NN_linear()

void NN_linear ( Tensor y,
const Tensor x,
const Tensor w,
const Tensor b 
)

Applies a linear transformation to the incoming data

y = x @ w.T + b

Parameters
ythe output tensor of shape (1, out_features)
xtnput tensor of shape (1, in_features)
wweight tensor of shape (out_features, in_features)
bbias tensor of shape (1, out_features), or NULL if no bias is applied