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

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

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

# all

[common]\
fun [all](all.md)(input: [Tensor](../Tensor/index.md), dims: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf(), keepdim: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`all(input: Tensor, dims: LongArray = longArrayOf(), keepdim: Boolean = false)`: the `all` operator. True where EVERY element over `dims` is nonzero (logical AND reduce). Empty `dims` reduces every dimension. Output dtype is always `Bool`. An element is nonzero exactly when its Bool cast is true: +0 and -0 are zero; a subnormal, an infinity and a NaN are nonzero.