def _restore_out(self, out_vars):
    '\n        Restores same nested outputs by only replacing the Variable with VarBase.\n        '
    flatten_outputs = self._outputs.tolist()
    for (i, idx) in enumerate(self._outputs.var_ids):
        flatten_outputs[idx] = out_vars[i]
    outs = self._outputs.restore(flatten_outputs)
    if ((outs is not None) and (len(outs) == 1)):
        outs = outs[0]
    return outs
Restores same nested outputs by only replacing the Variable with VarBase.
def _restore_out(self, out_vars):
    '\n        \n        '
    flatten_outputs = self._outputs.tolist()
    for (i, idx) in enumerate(self._outputs.var_ids):
        flatten_outputs[idx] = out_vars[i]
    outs = self._outputs.restore(flatten_outputs)
    if ((outs is not None) and (len(outs) == 1)):
        outs = outs[0]
    return outs