用于设置即刻定义函数的执行者的上下文管理器。
用法
@tf_contextlib.contextmanager
tf.experimental.function_executor_type(
executor_type
)
参数
-
executor_type
执行器名称的字符串,用于执行 tf.contrib.eager.defun 定义的函数。
生成(Yield)
- 用于设置即刻定义函数的执行者的上下文管理器。
即刻定义的函数是由 tf.contrib.eager.defun 修饰的函数。
相关用法
- Python tf.experimental.dlpack.from_dlpack用法及代码示例
- Python tf.experimental.numpy.iinfo用法及代码示例
- Python tf.experimental.Optional.has_value用法及代码示例
- Python tf.experimental.dispatch_for_unary_elementwise_apis用法及代码示例
- Python tf.experimental.dispatch_for_api用法及代码示例
- Python tf.experimental.unregister_dispatch_for用法及代码示例
- Python tf.experimental.tensorrt.Converter用法及代码示例
- Python tf.experimental.ExtensionType用法及代码示例
- Python tf.experimental.Optional.get_value用法及代码示例
- Python tf.experimental.numpy.issubdtype用法及代码示例
- Python tf.experimental.numpy.unicode_用法及代码示例
- Python tf.experimental.dlpack.to_dlpack用法及代码示例
- Python tf.experimental.async_scope用法及代码示例
- Python tf.experimental.Optional.empty用法及代码示例
- Python tf.experimental.numpy.float16.as_integer_ratio用法及代码示例
- Python tf.experimental.numpy.float64.as_integer_ratio用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.experimental.function_executor_type。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。