# tf.math.xlogy

<br />

Returns 0 if x == 0, and x \* log(y) otherwise, elementwise.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.math.xlogy`](https://www.tensorflow.org/api_docs/python/tf/math/xlogy)

<br />

    tf.math.xlogy(
        x: Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any],
        y: Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any],
        name=None
    ) -> Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor`. Must be one of the following types: `half`, `bfloat16`, `float32`, `float64`, `complex64`, `complex128`. |
| `y` | A `Tensor`. Must have the same type as `x`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `x`. ||

<br />