提交 158b1edc authored 作者: Ian Goodfellow's avatar Ian Goodfellow

merged

......@@ -23,6 +23,7 @@ you out.
.. toctree::
python
numpy
adding
examples
......
.. _python:
***************
Python tutorial
***************
In this documentation, we suppose that reader know python. Here is a small list of python tutorials/exercices if you know know it or need a refresher:
* `Python Challenge <http://www.pythonchallenge.com/>`__
* `Dive into Python <http://diveintopython.org/>`__
* `Google Python Class <http://code.google.com/edu/languages/google-python-class/index.html>`__
......@@ -1005,7 +1005,7 @@ def div_proxy(x, y):
class TrueDiv(BinaryScalarOp):
def output_types(self, types):
if all(t.dtype.startswith('int') for t in types):
if all(t not in continuous_types for t in types):
return [float64]
else:
return super(TrueDiv, self).output_types(types)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论