

def get_errors(self, inputs, targets):
    '\n        Get a list of errors for backpropagating to a Tree container that has multiple output\n        nodes.\n\n        Arguments:\n            inputs (list(Tensor)): list of Tensors containing input values to be compared to\n                                   targets\n            targets (Tensor, list(Tensor)): either a list of Tensors containing target values, or\n                                            a single target Tensor that will be mapped to each\n                                            input\n        Returns:\n            list of Tensors containing errors for each input\n        '
    l_targets = (targets if (type(targets) in (tuple, list)) else [targets for c in self.costs])
    if (self.errors is None):
        self.errors = [c.deltas for c in self.costs]
    for (c, i, t) in zip(self.costs, inputs, self):
        c.get_errors(i, t)
    return self.errors

dataset/ETHPy150Open NervanaSystems/neon/neon/layers/container.py Multicost.get_errors/VarMisuse@90/271 `l_targets`->`self`