提交 9820f013 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Merge pull request #3054 from nouiz/prof

Add Equilibrium profiling of global and final optimization
差异被折叠。
......@@ -26,8 +26,8 @@ if [ "$1" == "--buildbot" ]; then
NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose
export PYTHONPATH=${ROOT_CWD}:$PYTHONPATH
else
COMPILEDIR=`python -c "from __future__ import print_function; import theano; print(theano.config.compiledir)"`
NOSETESTS=`python -c "from __future__ import print_function; import theano; print(theano.__path__[0])"`/../bin/theano-nose
COMPILEDIR=`python -c "from __future__ import print_function; import theano; print(theano.config.compiledir)"|tail -1`
NOSETESTS=`python -c "from __future__ import print_function; import theano; print(theano.__path__[0])"|tail -1`/../bin/theano-nose
fi
echo "Number of elements in the compiledir:"
......
......@@ -1064,9 +1064,13 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
Py_DECREF(indices_obj);
Py_DECREF(indices_float32);
} else {
PyErr_SetString(PyExc_TypeError,
"CudaNdarray_TakeFrom: need a CudaNdarray(float32) that"
" is a view from int64 data for indices");
PyObject* py_s = PyObject_Str(indices_obj);
const char* s = PyString_AsString(py_s);
Py_DECREF(py_s);
PyErr_Format(PyExc_TypeError,
"CudaNdarray_TakeFrom: need an ndarray of int64 or a"
" CudaNdarray(float32) that is a view from int64 data"
" for indices. Got %s", s);
return NULL;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论