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

Function _str_id

tensorflow/python/profiler/tfprof_logger.py:68–74  ·  view source on GitHub ↗

Maps string to id.

(s, str_to_id)

Source from the content-addressed store, hash-verified

66
67
68def _str_id(s, str_to_id):
69 """Maps string to id."""
70 num = str_to_id.get(s, None)
71 if num is None:
72 num = len(str_to_id)
73 str_to_id[s] = num
74 return num
75
76
77def _get_logged_ops(graph, run_meta=None, add_trace=True,

Callers 1

_get_logged_opsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected