Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mlperf_logging/compliance_checker/mlp_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ def check_file(self, filename, config_file):

def usage_choices():
return set(( x.split("_")[0] for x in os.listdir(os.path.dirname(__file__))
if re.match('\w+_\d+\.\d+\.\d+', x) ))
if re.match(r'\w+_\d+\.\d+\.\d+', x) ))

def rule_choices():
return set(( x.split("_")[1] for x in os.listdir(os.path.dirname(__file__))
if re.match('\w+_\d+\.\d+\.\d+', x) ))
if re.match(r'\w+_\d+\.\d+\.\d+', x) ))


def get_parser():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
TOKEN = ':::MLL'

# ^.*
LINE_PATTERN = '^' + TOKEN + ''' [ ] # token and version
LINE_PATTERN = '^' + TOKEN + r''' [ ] # token and version
([\d\.]+) [ ] # timestamp
([A-Za-z0-9_]+) [ ]? # key
:\s+(.+) # value
Expand Down
Loading