Contents

sigmoidGradient(withIncomingGradient:sourceTensor:name:)

Computes the gradient of the sigmoid function using the incoming gradient tensor.

Declaration

func sigmoidGradient(withIncomingGradient gradient: MPSGraphTensor, sourceTensor source: MPSGraphTensor, name: String?) -> MPSGraphTensor

Parameters

  • gradient:

    The incoming gradient tensor.

  • source:

    The input tensor.

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object