Skip to content

Commit

Permalink
Update TensorFlow script
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Apr 30, 2024
1 parent f406e54 commit 32228b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/tf_metadata.py
Expand Up @@ -3,6 +3,7 @@
import json
import logging
import os
import re
import google.protobuf # pylint: disable=import-error

logging.getLogger('tensorflow').setLevel(logging.ERROR)
Expand Down Expand Up @@ -87,6 +88,7 @@ def _pbtxt_from_multiline(multiline_pbtxt):
def _read_op_list(file):
op_list = op_def_pb2.OpList() # pylint: disable=no-member
content = _read(file)
content = re.sub(r'^go/[a-z]+\s*', '', content)
google.protobuf.text_format.Merge(content, op_list)
return op_list

Expand Down

0 comments on commit 32228b8

Please sign in to comment.