Skip to content

Commit 46fc8c9

Browse files
committed
Remove use of .value in mlp
1 parent 2734849 commit 46fc8c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

code/mlp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def test_mlp( learning_rate=0.01, L1_reg = 0.00, L2_reg = 0.0001, n_epochs=1000,
198198

199199

200200
# compute number of minibatches for training, validation and testing
201-
n_train_batches = train_set_x.value.shape[0] / batch_size
202-
n_valid_batches = valid_set_x.value.shape[0] / batch_size
203-
n_test_batches = test_set_x.value.shape[0] / batch_size
201+
n_train_batches = train_set_x.get_value(borrow=True).shape[0] / batch_size
202+
n_valid_batches = valid_set_x.get_value(borrow=True).shape[0] / batch_size
203+
n_test_batches = test_set_x.get_value(borrow=True).shape[0] / batch_size
204204

205205
######################
206206
# BUILD ACTUAL MODEL #

0 commit comments

Comments
 (0)