提交 818f43e2 authored 作者: David Warde-Farley's avatar David Warde-Farley

Tweak docs to not find spurious '== None' later.

上级 ad4163e1
...@@ -589,7 +589,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -589,7 +589,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
r_name = getattr(r, 'name', '') r_name = getattr(r, 'name', '')
# normally if the name isn't set, it'll be None, so # normally if the name isn't set, it'll be None, so
# r_name == None here # r_name is None here
if r_name is None: if r_name is None:
r_name = '' r_name = ''
......
...@@ -249,7 +249,8 @@ class Variable(utils.object2): ...@@ -249,7 +249,8 @@ class Variable(utils.object2):
- `RandomVariable` - `RandomVariable`
A Variable which is the output of a symbolic computation will have an owner != None. A Variable which is the output of a symbolic computation will have an owner
not equal to None.
Using the Variables' owner field and the Apply nodes' inputs fields, one can navigate a graph Using the Variables' owner field and the Apply nodes' inputs fields, one can navigate a graph
from an output all the way to the inputs. The opposite direction is not possible until an from an output all the way to the inputs. The opposite direction is not possible until an
......
...@@ -3178,7 +3178,7 @@ class Mean(elemwise.CAReduce): ...@@ -3178,7 +3178,7 @@ class Mean(elemwise.CAReduce):
if self.axis is not None: if self.axis is not None:
return super(Op, self).c_code(node, name, inames, onames, sub) return super(Op, self).c_code(node, name, inames, onames, sub)
ret = elemwise.CAReduce.c_code(self, node, name, inames, onames, sub) ret = elemwise.CAReduce.c_code(self, node, name, inames, onames, sub)
#TODO: c_code perform support only axis==None #TODO: c_code perform support only axis is None
return ret + """ return ret + """
*((double *)PyArray_DATA(%s)) /= PyArray_SIZE(%s); *((double *)PyArray_DATA(%s)) /= PyArray_SIZE(%s);
""" % (onames[0], inames[0]) """ % (onames[0], inames[0])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论