Contents

BNNSComputeNormBackward(_:_:_:_:_:_:)

Backpropogates gradients for the compute norm function.

Declaration

func BNNSComputeNormBackward(_ in: UnsafeRawPointer, _ in_delta: UnsafeMutablePointer<BNNSNDArrayDescriptor>, _ out: UnsafeRawPointer, _ out_delta: UnsafePointer<BNNSNDArrayDescriptor>, _ norm_type: BNNSNormType, _ axis_flags: UInt32) -> Int32

Parameters

  • in:

    The descriptor of the input.

  • in_delta:

    The descriptor of the input delta.

  • out:

    The descriptor of the output.

  • out_delta:

    The descriptor of the output delta.

  • norm_type:

    The type of the norm. This function supports only Bnnsl2norm.

  • axis_flags:

    The dimensions that the function uses to compute the norm. Set to 0 to specify that the function computes the norm over all dimensions.

See Also

Compute norm functions