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

Method eval

tensorpack/models/models_test.py:16–22  ·  view source on GitHub ↗
(self, x, feed_dict=None)

Source from the content-addressed store, hash-verified

14class TestModel(unittest.TestCase):
15
16 def eval(self, x, feed_dict=None):
17 sess = tf.Session()
18 sess.run(tf.global_variables_initializer())
19 if isinstance(x, list):
20 return sess.run(x, feed_dict=feed_dict)
21 else:
22 return sess.run([x], feed_dict=feed_dict)[0]
23
24 def make_variable(self, *args):
25 if len(args) > 1:

Callers 8

_triggerMethod · 0.80
get_valueMethod · 0.80
test_FixedUnPoolingMethod · 0.80
test_shape_matchMethod · 0.80
optimizer.pyFile · 0.80
dump_session_paramsFunction · 0.80
_evalMethod · 0.80

Calls 1

runMethod · 0.45

Tested by

no test coverage detected