for cfunc in pending_functions:
if all(((id(cvar) in self._cvar_ids) for cvar in cfunc.inputs)):
// このレイヤーは入力が揃った
print("do", cfunc)
opr_block = self._construct_operator_block(cfunc)
out_nvars = opr_block([self._cvar_to_nvar[id(cvar)] for cvar in cfunc.inputs])
assert len(out_nvars) == len(cfunc.outputs)
// 出力変数を対応づける
After Change
opr_block = self._construct_operator_block(cfunc)
out_nvars = opr_block([self._cvar_to_nvar[id(cvar)] for cvar in cfunc.inputs])
assert len(out_nvars) == len(cfunc.outputs), str(cfunc)
self._known_nvars.extend(opr_block.hidden_consts)
self._known_nvars.extend(opr_block.hidden_vars)
// 出力変数を対応づける
for out_nvar, out_cvar_wref in zip(out_nvars, cfunc.outputs):
out_cvar = out_cvar_wref()