View source on GitHub |
Computes whether label is greater or equal to 1.
tfr.keras.utils.is_greater_equal_1(
label: tfr.keras.model.TensorLike
) -> tf.Tensor
Args | |
---|---|
label
|
A Tensor or anything that can be converted to a tensor using
tf.convert_to_tensor .
|
Returns | |
---|---|
A Tensor that has each input element transformed as x to I(x > 1) .
|