copapy.nn.linear#
- copapy.nn.linear(x, weight, bias=None)#
Fully connected layer: weight @ x + bias
- Parameters:
- Return type:
TVec- Returns:
Float array, tensor or vector (same type as x) of shape (out_features,) with a leading batch dimension if x has one.