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

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

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

# xlog1py

[common]\
fun [xlog1py](xlog1py.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`xlog1py(input: Tensor, other: Tensor)`: the `xlog1py` operator. Elementwise with the convention (entropy-style sums stay finite where `input` is zero). Broadcasts and promotes as `add`.

[common]\
fun [xlog1py](xlog1py.md)(input: [Tensor](../Tensor/index.md), other: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Tensor](../Tensor/index.md)

`xlog1py(input: Tensor, other: Double)`: the number form of `xlog1py`, `other` as a scalar.