Skip to content

Commit 18a5e1a

Browse files
committed
Merge pull request lisa-lab#133 from nouiz/In
Use the In object as Param is deprecated
2 parents e1d1e0c + b701733 commit 18a5e1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

code/DBN.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def pretraining_functions(self, train_set_x, batch_size, k):
174174

175175
# compile the theano function
176176
fn = theano.function(
177-
inputs=[index, theano.Param(learning_rate, default=0.1)],
177+
inputs=[index, theano.In(learning_rate, value=0.1)],
178178
outputs=cost,
179179
updates=updates,
180180
givens={

code/SdA.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ def pretraining_functions(self, train_set_x, batch_size):
214214
fn = theano.function(
215215
inputs=[
216216
index,
217-
theano.Param(corruption_level, default=0.2),
218-
theano.Param(learning_rate, default=0.1)
217+
theano.In(corruption_level, value=0.2),
218+
theano.In(learning_rate, value=0.1)
219219
],
220220
outputs=cost,
221221
updates=updates,

0 commit comments

Comments
 (0)