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)
|
file_io.recursive_create_dir(logdir)
|
||||||
path = os.path.join(logdir, name)
|
path = os.path.join(logdir, name)
|
||||||
if as_text:
|
if as_text:
|
||||||
file_io.atomic_write_string_to_file(path,
|
file_io.atomic_write_string_to_file(
|
||||||
text_format.MessageToString(
|
path, text_format.MessageToString(graph_def)
|
||||||
graph_def, float_format=''))
|
)
|
||||||
else:
|
else:
|
||||||
file_io.atomic_write_string_to_file(
|
file_io.atomic_write_string_to_file(
|
||||||
path, graph_def.SerializeToString(deterministic=True))
|
path, graph_def.SerializeToString(deterministic=True))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user