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

Method eval

tensorflow/contrib/labeled_tensor/python/ops/test_util.py:29–40  ·  view source on GitHub ↗
(self, tensors)

Source from the content-addressed store, hash-verified

27 """A class with some useful methods for testing."""
28
29 def eval(self, tensors):
30 with self.cached_session() as sess:
31 coord = coordinator.Coordinator()
32 threads = queue_runner_impl.start_queue_runners(sess=sess, coord=coord)
33
34 try:
35 results = sess.run(tensors)
36 finally:
37 coord.request_stop()
38 coord.join(threads)
39
40 return results
41
42 def assertTensorsEqual(self, tensor_0, tensor_1):
43 [tensor_0_eval, tensor_1_eval] = self.eval([tensor_0, tensor_1])

Calls 6

request_stopMethod · 0.95
joinMethod · 0.95
CoordinatorMethod · 0.80
cached_sessionMethod · 0.45
start_queue_runnersMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected