View source on GitHub |
Computes the inverse of input rank.
tfr.keras.utils.inverse(
rank: tfr.keras.model.TensorLike
) -> tf.Tensor
Args | |
---|---|
rank
|
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 1/x .
|