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

Function _GetContextFromOp

tensorflow/contrib/quantize/python/quantize.py:805–810  ·  view source on GitHub ↗

Gets the root context name from the op name.

(op)

Source from the content-addressed store, hash-verified

803
804
805def _GetContextFromOp(op):
806 """Gets the root context name from the op name."""
807 context_re = re.search(r'^(.*)/([^/]+)', op.name)
808 if context_re:
809 return context_re.group(1)
810 return ''
811
812
813def _AddContextToName(context, name):

Callers 1

QuantizeFunction · 0.85

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected