Make CriticalSection work inside a Dataset with eager execution enabled.
tf.colocate_with() might be provided with eager tensors when constructing TensorFlow functions (like the subgraph for map() inside a tf.data.Dataset). Prior to this change, the added test would fail with: "Tensor.op is meaningless when eager execution is enabled." PiperOrigin-RevId: 194217166
Loading
Please sign in to comment