提交 c267e023 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #409 from lamblin/fix_misc_buildbot_tests

Fix misc buildbot tests
......@@ -109,8 +109,8 @@ New features:
The new theano.sparse.dot() has a dense gradient for all inputs.
* GpuAdvancedSubtensor1 supports broadcasted dimensions. (Frederic)
* TensorVariable.zeros_like() and SparseVariable.zeros_like()
* theano.sandbox.cuda.cuda_ndarray.cuda_ndarray.device_properties()(Frederic)
* theano.sandbox.cuda.cuda_ndarray.cuda_ndarray.mem_info()return free and total gpu memory(Frederic)
* theano.sandbox.cuda.cuda_ndarray.cuda_ndarray.device_properties() (Frederic)
* theano.sandbox.cuda.cuda_ndarray.cuda_ndarray.mem_info() return free and total gpu memory (Frederic)
* Theano flags compiledir_format. Keep the same default as before: compiledir_%(platform)s-%(processor)s-%(python_version)s. (Josh Bleecher Snyder)
* We also support the "theano_version" substitution.
* IntDiv c code (faster and allow this elemwise to be fused with other elemwise) (Pascal)
......@@ -122,8 +122,10 @@ New features:
* a_CudaNdarray_object[*] = int, now work (Frederic)
* tensor_variable.size (as numpy) computes the product of the shape elements. (Olivier)
* sparse_variable.size (as scipy) computes the number of stored values. (Olivier)
* sparse_variable[N, N] now work (Li Yao, Frederic)
* sparse_variable[M:N, O:P] now work (Li Yao, Frederic)
* sparse_variable[N, N] now works (Li Yao, Frederic)
* sparse_variable[M:N, O:P] now works (Li Yao, Frederic)
* Warning: M, N, O, and P should be Python int or scalar tensor variables,
in particular, None is not well-supported.
New optimizations:
* AdvancedSubtensor1 reuses preallocated memory if available (scan, c|py_nogc linker) (Frederic)
......
......@@ -6,7 +6,6 @@ NOSETESTS=nosetests
ARGS=$@
PROFILING=""
RELEASE=""
COMPILEDIR=`python -c "import theano;print theano.config.compiledir"`
if [ "$1" == "--release" ]; then
RELEASE="True"
shift
......@@ -21,6 +20,8 @@ if [ "$1" == "--buildbot" ]; then
cd ..
ARGS="Theano"
PROFILING="--with-coverage --cover-package=theano"
else
COMPILEDIR=`python -c "import theano;print theano.config.compiledir"`
fi
echo "Number of elements in the compiledir:"
......
......@@ -3990,19 +3990,19 @@ def test_tile():
rng = numpy.random.RandomState(utt.fetch_seed())
x = vector()
f = function([x], tile(x, (2,)))
x_ = rng.randn(5)
x_ = rng.randn(5).astype(config.floatX)
assert numpy.all(f(x_) == numpy.tile(x_, (2,)))
# Test the two-dimensional case.
x = matrix()
f = function([x], tile(x, (2, 3)))
x_ = rng.randn(2, 4)
x_ = rng.randn(2, 4).astype(config.floatX)
assert numpy.all(f(x_) == numpy.tile(x_, (2, 3)))
# Test the three-dimensional case.
x = tensor3()
f = function([x], tile(x, (2, 3, 4)))
x_ = rng.randn(2, 4, 3)
x_ = rng.randn(2, 4, 3).astype(config.floatX)
assert numpy.all(f(x_) == numpy.tile(x_, (2, 3, 4)))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论