MCPcopy Index your code
hub / github.com/tensorflow/models / _get_variable_name

Method _get_variable_name

official/modeling/optimization/lamb.py:247–252  ·  view source on GitHub ↗

Get the variable name from the tensor name.

(self, param_name)

Source from the content-addressed store, hash-verified

245 return True
246
247 def _get_variable_name(self, param_name):
248 """Get the variable name from the tensor name."""
249 m = re.match("^(.*):\\d+$", param_name)
250 if m is not None:
251 param_name = m.group(1)
252 return param_name

Callers 2

_resource_apply_denseMethod · 0.95

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected