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

Function load_params

misc/skipthoughts.py:233–243  ·  view source on GitHub ↗

load parameters

(path, params)

Source from the content-addressed store, hash-verified

231
232
233def load_params(path, params):
234 """
235 load parameters
236 """
237 pp = numpy.load(path)
238 for kk, vv in params.iteritems():
239 if kk not in pp:
240 warnings.warn('%s is not in the archive'%kk)
241 continue
242 params[kk] = pp[kk]
243 return params
244
245
246# layers: 'name': ('parameter initializer', 'feedforward')

Callers 1

load_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected