As support for int64 global steps is not ready in TPUs, I am reversing this change so that our internal performance and regression tests will pass.
This commit is contained in:
parent
32ffc5a81e
commit
877c9deca3
@ -68,11 +68,12 @@ def _create_global_step(graph):
|
||||
return variable_scope.get_variable(
|
||||
ops.GraphKeys.GLOBAL_STEP,
|
||||
shape=[],
|
||||
dtype=dtypes.int64,
|
||||
dtype=dtypes.int32,
|
||||
initializer=init_ops.zeros_initializer(),
|
||||
trainable=False,
|
||||
use_resource=True,
|
||||
collections=[ops.GraphKeys.GLOBAL_VARIABLES, ops.GraphKeys.GLOBAL_STEP])
|
||||
collections=[ops.GraphKeys.GLOBAL_VARIABLES,
|
||||
ops.GraphKeys.GLOBAL_STEP])
|
||||
|
||||
|
||||
def _sync_variables_ops():
|
||||
|
Loading…
Reference in New Issue
Block a user