View source on GitHub |
Returns the same class. This will be removed once all usages are removed.
tf.test.with_eager_op_as_function(
cls: Optional[type[_T]] = None, only_as_function: bool = False
) -> Union[Callable[[type[_T]], type[_T]], type[_T]]
Args | |
---|---|
cls
|
class to decorate. |
only_as_function
|
unused argument. |
Returns | |
---|---|
cls |