There are three types of function calls that could be invoked during Tensorflow graph execution*: 1) Native function call (node.type_string() is the function name). These functions are always executed on a single-device, which is the device of the function call node. 2) Multi-device function calls (PartitionedCall or StatefulPartitionedCall ops) can execute on multiple devices and accept DT_RESO
| 324 | // 2) tf.data pipelines - also execute functions directly via function library |
| 325 | // runtime with custom executors. |
| 326 | struct ExpandInlineFunctionsOptions { |
| 327 | ExpandInlineFunctionsOptions() : native_options(), multi_device_options() { |
| 328 | using OutputControlSrc = InlineFunctionBodyOptions::OutputControlSource; |
| 329 | multi_device_options.output_control_src = OutputControlSrc::kControlOutputs; |
| 330 | } |
| 331 | |
| 332 | InlineFunctionBodyOptions native_options; |
| 333 | InlineFunctionBodyOptions multi_device_options; |
| 334 | }; |
| 335 | |
| 336 | // WARNING(ezhulenev): PLEASE DO NOT USE THIS FUNCTION. This is a temporary |
| 337 | // workaround that will be enabled only during the function inlining unification |
no outgoing calls
no test coverage detected