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