- Mastering TensorFlow 1.x
- Armando Fandango
- 61字
- 2025-04-04 17:33:13
Dynamic placement
The tf.device() can also be passed a function name instead of a device string. In such case, the function must return the device string. This feature allows complex algorithms for placing the variables on different devices. For example, TensorFlow provides a round robin device setter in tf.train.replica_device_setter() that we will discuss later in next section.