mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +01:00
Remove deprecated float_format/double_format in python proto text_format.
PiperOrigin-RevId: 826666522
This commit is contained in:
parent
15e235f79b
commit
23f7b26bc5
|
|
@ -75,9 +75,9 @@ def write_graph(graph_or_graph_def, logdir, name, as_text=True):
|
|||
file_io.recursive_create_dir(logdir)
|
||||
path = os.path.join(logdir, name)
|
||||
if as_text:
|
||||
file_io.atomic_write_string_to_file(path,
|
||||
text_format.MessageToString(
|
||||
graph_def, float_format=''))
|
||||
file_io.atomic_write_string_to_file(
|
||||
path, text_format.MessageToString(graph_def)
|
||||
)
|
||||
else:
|
||||
file_io.atomic_write_string_to_file(
|
||||
path, graph_def.SerializeToString(deterministic=True))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user