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

# isFinite(with:name:)

Checks if the input tensor elements are finite or not.

## Declaration

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

## Parameters

- `tensor`: The input tensor.
- `name`: An optional string which serves as an identifier for the operation.

## Return Value

Return Value A valid MPSGraphTensor object containing the elementwise result of the applied operation.

## Discussion

Discussion If the input tensor element is finite, the operation returns true, else it returns false.
