Contents

sigmoid(with:name:)

Computes the sigmoid operation on an input tensor.

Declaration

func sigmoid(with tensor: MPSGraphTensor, name: String?) -> MPSGraphTensor

Parameters

  • tensor:

    The input tensor.

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object.