Skip to main content
 首页 » 编程设计

python之Tensorflow 中的 Theano.function 等价物

2025年05月04日31mq0036

我想知道是否有任何等同于

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 中

请您参考如下方法:

tf.Session 上的run 方法类非常接近 theano.function。它的 fetches 和 feed_dict 参数在道德上等同于 outputs 和 givens。