diff --git a/tensorboard/defs/web.bzl b/tensorboard/defs/web.bzl index 23bf365703d..8d756bbc28a 100644 --- a/tensorboard/defs/web.bzl +++ b/tensorboard/defs/web.bzl @@ -112,7 +112,7 @@ def _tf_web_library(ctx): ], ) params_file = _new_file(ctx, "-params.pbtxt") - ctx.actions.write(output = params_file, content = params.to_proto()) + ctx.actions.write(output = params_file, content = proto.encode_text(params)) ctx.actions.write( is_executable = True, output = ctx.outputs.executable,