tf.Tensor.eval的使用方法
2018-01-19 12:02
369 查看
eval
eval(
feed_dict=None,
session=None
)
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 default session must be available, or session must be specified explicitly.
Args:
feed_dict: A dictionary that maps Tensor objects to feed values. See tf.Session.run for a description of the valid feed values.
session: (Optional.) The Session to be used to evaluate this tensor. If none, the default session will be used.
Returns:
A numpy array corresponding to the value of this tensor.
eval(
feed_dict=None,
session=None
)
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 default session must be available, or session must be specified explicitly.
Args:
feed_dict: A dictionary that maps Tensor objects to feed values. See tf.Session.run for a description of the valid feed values.
session: (Optional.) The Session to be used to evaluate this tensor. If none, the default session will be used.
Returns:
A numpy array corresponding to the value of this tensor.
相关文章推荐
- Tensorflow方法tf.SparseTensor使用说明
- 如何解决FormView中实现DropDownList连动选择时出现 "Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用" 的错误
- eval使用方法
- asp.net下的“Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用。”错误的一个可能的成因
- 使用 Eval 方法
- 如何使用DataBinder.Eval()方法进行数据绑定
- 如何使用DataBinder.Eval()方法进行数据绑定
- javascript(js)使用eval方法加密过的函数解密方法
- asp.net 数据绑定 使用eval 时候报 字符文本中的字符太多 问题的解决方法
- EVAL的使用方法
- DataList使用eval方法绑定图片
- 使用beanShell来解析执行java的String方法,类似javascipt的eval方法
- Bind()方法与Eval()方法的区别与使用
- TextBox属性Text 中使用DataBinder.Eval(Container.DataItem, "VacationWork_order")的时候出错的解决方法
- Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用
- Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用。 (FromView)
- Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用。
- 解决Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用
- Bind()方法与Eval()方法的区别与使用
- 如何使用DataBinder.Eval()方法进行数据绑定