Skip to content

Commit f13b880

Browse files
committed
Merge pull request lisa-lab#127 from nouiz/timing
Update timing that is now faster
2 parents c78b5a9 + 407fd81 commit f13b880

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ before_install:
1515
- conda update --yes conda
1616

1717
install:
18-
- conda create --yes -q -n pyenv mkl python=2.7 numpy=1.10 scipy=0.16.0 pip nose yaml pyflakes pillow pyparsing=1.5
18+
- conda create --yes -q -n pyenv mkl python=2.7 numpy=1.10 scipy=0.16.1 pip nose yaml pyflakes pillow pyparsing=1.5
1919
- source activate pyenv
2020
- pip install git+git://github.com/Theano/Theano.git
2121

2222
env:
2323
- PART="test.py:test_logistic_sgd test.py:test_logistic_cg test.py:test_mlp test.py:test_convolutional_mlp test.py:test_dA"
24-
- PART="test.py:test_SdA"
24+
- PART="test.py:test_SdA test.py:test_lstm"
2525
- PART="test.py:test_dbn"
2626
- PART="test.py:test_rbm test.py:test_rnnrbm"
2727
- PART="-e test.py"

code/hmc/test_hmc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import numpy
2-
from scipy import linalg
32
import theano
43

54
from hmc import HMC_sampler
@@ -15,7 +14,7 @@ def sampler_on_nd_gaussian(sampler_cls, burnin, n_samples, dim=10):
1514
cov = numpy.array(rng.rand(dim, dim), dtype=theano.config.floatX)
1615
cov = (cov + cov.T) / 2.
1716
cov[numpy.arange(dim), numpy.arange(dim)] = 1.0
18-
cov_inv = linalg.inv(cov)
17+
cov_inv = numpy.linalg.inv(cov)
1918

2019
# Define energy function for a multi-variate Gaussian
2120
def gaussian_energy(x):

code/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def speed():
8787
# 7.1-2 (python 2.7.2, mkl unknow). BLAS with only 1 thread.
8888

8989
expected_times_64 = numpy.asarray([9.8, 22.0, 76.1, 73.7, 116.4,
90-
346.9, 355.0, 558.1, 130.4, 23.2, 106])
91-
expected_times_32 = numpy.asarray([8.1, 17.9, 42.5, 66.5, 71,
92-
191.2, 199.0, 432.8, 119.5, 36.9, 78.0])
90+
346.9, 355.0, 510.9, 130.4, 23.2, 106])
91+
expected_times_32 = numpy.asarray([6.4, 17.9, 42.5, 66.5, 71,
92+
191.2, 199.0, 400.4, 119.5, 36.9, 67.2])
9393

9494
# Number with just 1 decimal are new value that are faster with
9595
# the Theano version 0.5rc2 Other number are older. They are not
@@ -110,7 +110,7 @@ def speed():
110110

111111
expected_times_gpu = numpy.asarray([3.0, 7.55523491, 18.99226785,
112112
5.8, 20.0,
113-
11.2, 17.2, 257.7, 118.8, 34.2, 8.7])
113+
11.2, 17.2, 244.3, 118.8, 34.2, 8.7])
114114
expected_times_64 = [s for idx, s in enumerate(expected_times_64)
115115
if to_exec[idx]]
116116
expected_times_32 = [s for idx, s in enumerate(expected_times_32)

0 commit comments

Comments
 (0)