---
title: "allclose"
sidebar_label: "allclose"
description: "Kotlin binding reference: allclose."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[allclose](allclose.md)

# allclose

[common]\
fun [allclose](allclose.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md), rtol: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0E-5, atol: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0E-8, equalNan: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`allclose(input: Tensor, other: Tensor, rtol: Double = 1e-5, atol: Double = 1e-8, equalNan: Boolean = false)`: the `allclose` operator. Whether EVERY elementwise pair is approximately equal, a reduction to one verdict. Shapes broadcast per the standard rules before the reduction.