theano学习--theano.shared共享变量

theano.shared能够看做是将变量设置为全局变量,其值能够在多个函数中共用.css 1. 经过get_value()、set_value()能够查看、设置共享变量的数值; import numpy, theano np_array = numpy.ones(2, dtype='float32') s_default = theano.shared(np_array) print s_de
相关文章
相关标签/搜索