提交 9856211f authored 作者: Mohammad Pezeshki's avatar Mohammad Pezeshki

Typo fixed

上级 7b386621
...@@ -2175,7 +2175,7 @@ pprint.assign(neg, printing.OperatorPrinter('-', 0, 'either')) ...@@ -2175,7 +2175,7 @@ pprint.assign(neg, printing.OperatorPrinter('-', 0, 'either'))
pprint.assign(true_div, printing.OperatorPrinter('/', -1, 'left')) pprint.assign(true_div, printing.OperatorPrinter('/', -1, 'left'))
pprint.assign(int_div, printing.OperatorPrinter('//', -1, 'left')) pprint.assign(int_div, printing.OperatorPrinter('//', -1, 'left'))
pprint.assign(pow, printing.OperatorPrinter('**', 1, 'right')) pprint.assign(pow, printing.OperatorPrinter('**', 1, 'right'))
pprint.assign(mod, printing.OperatorPrinter('%', -1, 'lef')) pprint.assign(mod, printing.OperatorPrinter('%', -1, 'left'))
class Inv(UnaryScalarOp): class Inv(UnaryScalarOp):
""" multiplicative inverse. Also called reciprocal""" """ multiplicative inverse. Also called reciprocal"""
...@@ -3109,8 +3109,10 @@ class Composite(ScalarOp): ...@@ -3109,8 +3109,10 @@ class Composite(ScalarOp):
for i, r in enumerate(self.fgraph.variables): for i, r in enumerate(self.fgraph.variables):
if r not in io and len(r.clients) > 1: if r not in io and len(r.clients) > 1:
r.name = 't%i' % i r.name = 't%i' % i
rval = "Composite{%s}" % ', '.join([pprint(output) for output rval = "Composite{%s}" % 'MMM'
in self.fgraph.outputs]) print pprint(self.fgraph.outputs)
#', '.join([pprint(output) for output
# in self.fgraph.outputs])
self.name = rval self.name = rval
def init_fgraph(self): def init_fgraph(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论