tf.SparseTensor.eval(feed_dict=None, session=None)
Evaluates this sparse 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 SparseTensor.eval()
, its graph must have been launched in a session, and either a default session must be available, or session
must be specified explicitly.
Args:
-
feed_dict
: A dictionary that mapsTensor
objects to feed values. SeeSession.run()
for a description of the valid feed values. -
session
: (Optional.) TheSession
to be used to evaluate this sparse tensor. If none, the default session will be used.
Returns:
A SparseTensorValue
object.
Please login to continue.