tf.test.with_eager_op_as_function
Возвращает тот же класс. Это будет удалено после того, как все варианты использования будут удалены.
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]]
| Аргументы | |
|---|---|
cls | класс, к которому применяется декоратор. |
only_as_function | неиспользуемый аргумент. |
| Возвращает | |
|---|---|
| cls |
© 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/test/with_eager_op_as_function