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

Method eval

tensorflow/python/framework/ops.py:777–798  ·  view source on GitHub ↗

Evaluates this tensor in a `Session`. Calling this method will execute all preceding operations that produce the inputs needed for the operation that produces this tensor. *N.B.* Before invoking `Tensor.eval()`, its graph must have been launched in a session, and either a defau

(self, feed_dict=None, session=None)

Source from the content-addressed store, hash-verified

775 self._disallow_bool_casting()
776
777 def eval(self, feed_dict=None, session=None):
778 """Evaluates this tensor in a `Session`.
779
780 Calling this method will execute all preceding operations that
781 produce the inputs needed for the operation that produces this
782 tensor.
783
784 *N.B.* Before invoking `Tensor.eval()`, its graph must have been
785 launched in a session, and either a default session must be
786 available, or `session` must be specified explicitly.
787
788 Args:
789 feed_dict: A dictionary that maps `Tensor` objects to feed values. See
790 `tf.Session.run` for a description of the valid feed values.
791 session: (Optional.) The `Session` to be used to evaluate this tensor. If
792 none, the default session will be used.
793
794 Returns:
795 A numpy array corresponding to the value of this tensor.
796
797 """
798 return _eval_using_default_session(self, feed_dict, self.graph, session)
799
800 def experimental_ref(self):
801 # tf.Variable also has the same experimental_ref() API. If you update the

Callers 15

_optimizeFunction · 0.45
testArgRenamesMethod · 0.45
testArgMinMaxMethod · 0.45
testExpandAndSqueezeMethod · 0.45
testArithmeticRenamesMethod · 0.45
testBatchAndSvdMethod · 0.45
testCrossEntropyMethod · 0.45
test_get_dense_tensorMethod · 0.45
test_get_dense_tensorMethod · 0.45
build_resultsMethod · 0.45

Calls 1

Tested by 15

testArgRenamesMethod · 0.36
testArgMinMaxMethod · 0.36
testExpandAndSqueezeMethod · 0.36
testArithmeticRenamesMethod · 0.36
testBatchAndSvdMethod · 0.36
testCrossEntropyMethod · 0.36
test_get_dense_tensorMethod · 0.36
test_get_dense_tensorMethod · 0.36
testUseExistingGraphMethod · 0.36
testUseDefaultGraphMethod · 0.36