MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _check_name

Function _check_name

tensorpack/contrib/keras.py:28–31  ·  view source on GitHub ↗
(tensor, name)

Source from the content-addressed store, hash-verified

26
27
28def _check_name(tensor, name):
29 tensorname = get_op_tensor_name(tensor.name)[0]
30 assert tensorname.split('/')[-1] == name, \
31 "{} does not match {}, you may have name conflict somewhere!".format(tensor.name, name)
32
33
34class KerasModelCaller(object):

Callers 1

get_costFunction · 0.85

Calls 2

get_op_tensor_nameFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected