MCPcopy Index your code
hub / github.com/lisa-lab/DeepLearningTutorials / unzip

Function unzip

code/lstm.py:66–73  ·  view source on GitHub ↗

When we pickle the model. Needed for the GPU stuff.

(zipped)

Source from the content-addressed store, hash-verified

64
65
66def unzip(zipped):
67 """
68 When we pickle the model. Needed for the GPU stuff.
69 """
70 new_params = OrderedDict()
71 for kk, vv in zipped.items():
72 new_params[kk] = vv.get_value()
73 return new_params
74
75
76def dropout_layer(state_before, use_noise, trng):

Callers 1

train_lstmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected