提交 a9de424f authored 作者: Benjamin Scellier's avatar Benjamin Scellier

change comments

上级 74bb6553
...@@ -1145,10 +1145,6 @@ Getting a Theano result like NumPy: ...@@ -1145,10 +1145,6 @@ Getting a Theano result like NumPy:
>>> t[(t > 4).nonzero()].eval() >>> t[(t > 4).nonzero()].eval()
array([5, 6, 7, 8]) array([5, 6, 7, 8])
The gradient of Advanced indexing needs in many cases NumPy
1.8. It is not released yet as of April 30th, 2013. You can use NumPy
development version to have this feature now.
Index-assignment is *not* supported. If you want to do something like ``a[5] Index-assignment is *not* supported. If you want to do something like ``a[5]
= b`` or ``a[5]+=b``, see :func:`theano.tensor.set_subtensor` and :func:`theano.tensor.inc_subtensor` below. = b`` or ``a[5]+=b``, see :func:`theano.tensor.set_subtensor` and :func:`theano.tensor.inc_subtensor` below.
......
...@@ -1535,7 +1535,7 @@ class CAReduce(Op): ...@@ -1535,7 +1535,7 @@ class CAReduce(Op):
if input.type.dtype in ["float32", "float64"]: if input.type.dtype in ["float32", "float64"]:
identity = "-__builtin_inf()" identity = "-__builtin_inf()"
elif input.type.dtype.startswith("uint"): elif input.type.dtype.startswith("uint"):
# numpy1.5.1 don't define NPY_MIN_UINT* # numpy does not define NPY_MIN_UINT*
identity = "0" identity = "0"
else: else:
identity = "NPY_MIN_" + str(input.type.dtype).upper() identity = "NPY_MIN_" + str(input.type.dtype).upper()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论