MCPcopy Index your code
hub / github.com/hanzhanggit/StackGAN / init_tparams

Function init_tparams

misc/skipthoughts.py:223–230  ·  view source on GitHub ↗

initialize Theano shared variables according to the initial parameters

(params)

Source from the content-addressed store, hash-verified

221
222
223def init_tparams(params):
224 """
225 initialize Theano shared variables according to the initial parameters
226 """
227 tparams = OrderedDict()
228 for kk, pp in params.iteritems():
229 tparams[kk] = theano.shared(params[kk], name=kk)
230 return tparams
231
232
233def load_params(path, params):

Callers 1

load_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected