提交 2831f86d authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added spaces to comments in scan_op

上级 d35a3f83
...@@ -1165,9 +1165,9 @@ class Scan(PureOp): ...@@ -1165,9 +1165,9 @@ class Scan(PureOp):
def grad(self, args, g_outs): def grad(self, args, g_outs):
#This discards information about whether incoming gradients are 0 # This discards information about whether incoming gradients are 0
#or disconnected from the cost # or disconnected from the cost
#TODO: upgrade scan op to report disconnection correctly # TODO: upgrade scan op to report disconnection correctly
def strip_disconnected( g ): def strip_disconnected( g ):
if isinstance(g.type, DisconnectedType): if isinstance(g.type, DisconnectedType):
return None return None
...@@ -1675,7 +1675,7 @@ class Scan(PureOp): ...@@ -1675,7 +1675,7 @@ class Scan(PureOp):
scan_sit_sot = inputs[b:e] + clean_eval_points scan_sit_sot = inputs[b:e] + clean_eval_points
inner_sit_sot = self_inputs[ib:ie] + inner_eval_points[ib:ie] inner_sit_sot = self_inputs[ib:ie] + inner_eval_points[ib:ie]
#Shared outs ... # Shared outs ...
b = e b = e
e = e + self.n_shared_outs e = e + self.n_shared_outs
ib = ie ib = ie
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论