---
title: abs()
framework: coreml
role: symbol
role_heading: Instance Method
path: coreml/mltensor/abs()
---

# abs()

Computes the absolute of the tensor’s elements.

## Declaration

```swift
func abs() -> MLTensor
```

## See Also

### Computing the absolute, ceiling and floor

- [ceil()](coreml/mltensor/ceil().md)
- [floor()](coreml/mltensor/floor().md)
