提交 cf6754a0 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

more comments

上级 2af3c8b2
...@@ -1390,6 +1390,12 @@ class Scan(PureOp): ...@@ -1390,6 +1390,12 @@ class Scan(PureOp):
Xt_placeholder = Xt.type() Xt_placeholder = Xt.type()
Xts.append(Xt_placeholder) Xts.append(Xt_placeholder)
if Xt not in self.inner_nitsot_outs(self_outputs): if Xt not in self.inner_nitsot_outs(self_outputs):
# What we do here is loop through dC_douts and collect all
# those that are connected to the specific one and do an
# upcast on all of their dtypes to get the dtype for this
# specific output. Deciding if the gradient with this
# specific previous step is defined or not is done somewhere
# else.
dtypes = [] dtypes = []
states = (self.inner_mitmot(self_inputs) + states = (self.inner_mitmot(self_inputs) +
self.inner_mitsot(self_inputs) + self.inner_mitsot(self_inputs) +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论