def get_cost(self, inputs, targets):
        if not isinstance(inputs, list):
            return self.costs[0].get_cost(inputs, targets)
        else:
            ltargets = targets if type(targets) in (tuple, list) else [targets for c in self.costs]
            costvals = [c.get_cost(i, t) for c, i, t in zip(self.costs, inputs, ltargets)]
            sum_optree = reduce(add, [w * c for w, c in zip(self.weights, costvals)])
            costvals[0][:] = sum_optree
            return costvals[0]
Unmark user as admin
dataset/ETHPy150Open NervanaSystems/neon/neon/layers/container.py/Multicost.get_cost--crossover with--dataset/ETHPy150Open mrgambal/vulyk/vulyk/control.py/admin_remove