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

Typo fixes and better phrasing

上级 8e8b9f99
...@@ -10,12 +10,12 @@ Bug fixes ...@@ -10,12 +10,12 @@ Bug fixes
* In Sparse sandbox, fix the grad of theano.sparse.sandbox.sp.row_scale. * In Sparse sandbox, fix the grad of theano.sparse.sandbox.sp.row_scale.
It did not return the right number of elements. (Frederic B.) It did not return the right number of elements. (Frederic B.)
* set_subtensor(x[int vector], new_value) when moved to the GPU * set_subtensor(x[int vector], new_value) when moved to the GPU
where transformed into inc_subtensor on the GPU. Now we have a slow was transformed into inc_subtensor on the GPU. Now we have a correct
GPU implementation. (but slow) GPU implementation.
Note: set_subtensor(x[slice[,...]], new_value) was working correctly Note 1: set_subtensor(x[slice[,...]], new_value) was working correctly
in all case as well as inc_subtensor(*, *). in all cases as well as inc_subtensor(*, *).
Note2: If your code have this behavior, we print a warning by default. Note 2: If your code was affected by the incorrect behavior, we now print
(Frederic B.) a warning by default (Frederic B.)
* Fixed an issue whereby config values were used as default arguments, * Fixed an issue whereby config values were used as default arguments,
with those defaults then stuck at old values if the config variables were with those defaults then stuck at old values if the config variables were
changed during program execution. (David W-F) changed during program execution. (David W-F)
......
...@@ -317,7 +317,7 @@ AddConfigVar('warn.subtensor_merge_bug', ...@@ -317,7 +317,7 @@ AddConfigVar('warn.subtensor_merge_bug',
AddConfigVar('warn.gpu_set_subtensor1', AddConfigVar('warn.gpu_set_subtensor1',
"Warn if previous versions of Theano (before 0.6) could have given " "Warn if previous versions of Theano (before 0.6) could have given "
"incorrect results when moving to the gpu" "incorrect results when moving to the gpu "
"set_subtensor(x[int vector], new_value)", "set_subtensor(x[int vector], new_value)",
BoolParam(warn_default('0.6')), BoolParam(warn_default('0.6')),
in_c_key=False) in_c_key=False)
......
...@@ -2799,9 +2799,9 @@ int CudaNdarray_CopyFromCudaNdarray(CudaNdarray * self, ...@@ -2799,9 +2799,9 @@ int CudaNdarray_CopyFromCudaNdarray(CudaNdarray * self,
if (self->nd < other->nd) if (self->nd < other->nd)
{ {
PyErr_Format(PyExc_NotImplementedError, PyErr_Format(PyExc_NotImplementedError,
"CudaNdarray_CopyFromCudaNdarray: The destination need more or the" "CudaNdarray_CopyFromCudaNdarray: The number of dimensions of the "
" same number of dimensions then the source. Got %d and %d.", "destination needs to be >= the number of dimensions of the "
self->nd, other->nd); "source. Got %d and %d.", self->nd, other->nd);
return -1; return -1;
} }
else if (self->nd != other->nd) else if (self->nd != other->nd)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论