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

Function _valid_name

tensorflow/contrib/tpu/python/tpu/keras_support.py:372–374  ·  view source on GitHub ↗

Return a valid tensor name (strips '/', ':', etc).

(tensor_name)

Source from the content-addressed store, hash-verified

370
371
372def _valid_name(tensor_name):
373 """Return a valid tensor name (strips '/', ':', etc)."""
374 return re.sub('[^a-zA-Z0-9_-]+', '', tensor_name)
375
376
377def _replicated_optimizer(opt):

Callers 1

make_input_specsMethod · 0.85

Calls 1

subMethod · 0.45

Tested by

no test coverage detected