Only enable last partial support in MirroredStrategy in eager mode.
PiperOrigin-RevId: 257686233
This commit is contained in:
parent
14bfae8a04
commit
2cb25a86b2
@ -381,7 +381,9 @@ class MirroredExtended(distribute_lib.StrategyExtendedV1):
|
||||
self._cross_device_ops = cross_device_ops
|
||||
self._initialize_strategy(devices)
|
||||
|
||||
self.experimental_enable_get_next_as_optional = True
|
||||
# TODO(b/128995245): Enable last partial batch support in graph mode.
|
||||
if ops.executing_eagerly_outside_functions():
|
||||
self.experimental_enable_get_next_as_optional = True
|
||||
|
||||
def _initialize_strategy(self, devices):
|
||||
# The _initialize_strategy method is intended to be used by distribute
|
||||
|
Loading…
Reference in New Issue
Block a user