Tensorflow中等效的Theano.function [英] Theano.function equivalent in Tensorflow
本文介绍了Tensorflow中等效的Theano.function的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有
theano.function(inputs=[x,y], # list of input variables
outputs=..., # what values to be returned
updates=..., # "state" values to be modified
givens=..., # substitutions to the graph)
在TensorFlow
in TensorFlow
推荐答案
The run
method on the tf.Session
class is quite close to theano.function
. Its fetches
and feed_dict
arguments are moral equivalents of outputs
and givens
.
这篇关于Tensorflow中等效的Theano.function的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文