---
title: "sigmoid(with:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/sigmoid(with:name:)"
---

# sigmoid(with:name:)

Computes the sigmoid operation on an input tensor.

## Declaration

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

## Parameters

- `tensor`: The input tensor.
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor object.
