MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / parser

Method parser

tensorflow/contrib/session_bundle/gc_test.py:106–110  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

104
105 # create a simple parser that pulls the export_version from the directory.
106 def parser(path):
107 match = re.match(r"^" + base_dir + r"/(\d+)$", path.path)
108 if not match:
109 return None
110 return path._replace(export_version=int(match.group(1)))
111
112 self.assertEquals(
113 gc.get_paths(

Callers

nothing calls this directly

Calls 2

matchMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected