Spec-Zone.ru › TensorFlow

tf.math.logical_not

Returns the truth value of NOT x element-wise.

View aliases

Main aliases

tf.logical_not

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.logical_not, tf.compat.v1.math.logical_not

tf.math.logical_not(
    x: Annotated[Any, tf.raw_ops.Any],
    name=None
) -> Annotated[Any, tf.raw_ops.Any]

Used in the notebooks

Used in the tutorials
  • Private Heavy Hitters
  • Client-efficient large-model federated learning via `federated_select` and sparse aggregation

Example:

tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False,  True])>
Args
x A Tensor of type bool. A Tensor of type bool.
name A name for the operation (optional).
Returns
A Tensor of type bool.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/math/logical_not

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API