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
相關文章
相關標籤/搜索