linear(weight:bias:)
Adds a linear transformation operation to the current graph.
Declaration
func linear(weight: some BNNSGraph.Builder.OperationParameter<T>, bias: some BNNSGraph.Builder.OperationParameter<T>) -> BNNSGraph.Builder.Tensor<T>Parameters
- weight:
The weight.
- bias:
The bias.
Discussion
This function treats self as x and weight as A in y = xA^T + bias.