Contents

fma(y:z:)

Adds an element-wise fused multiply-add operation to the current graph.

Declaration

func fma(y: some BNNSGraph.Builder.OperationParameter<T>, z: some BNNSGraph.Builder.OperationParameter<T>) -> BNNSGraph.Builder.Tensor<T>

Parameters

  • y:

    The y in x * y + z.

  • z:

    The z in x * y + z.

Discussion

This function treats the current tensor as x in x * y + z.