Remove deprecated float_format/double_format in python proto text_format.

PiperOrigin-RevId: 826666522
This commit is contained in:
Jie Luo 2025-10-31 16:21:11 -07:00 committed by TensorFlower Gardener
parent 15e235f79b
commit 23f7b26bc5

View File

@ -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))