MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / compile_regex

Method compile_regex

tensorpack/callbacks/monitor.py:427–431  ·  view source on GitHub ↗
(rs)

Source from the content-addressed store, hash-verified

425 any regex will not be printed. Defaults to match no names.
426 """
427 def compile_regex(rs):
428 if rs is None:
429 return None
430 rs = {re.compile(r) for r in rs}
431 return rs
432
433 self._whitelist = compile_regex(whitelist)
434 if blacklist is None:

Callers

nothing calls this directly

Calls 1

compileMethod · 0.80

Tested by

no test coverage detected