def get_cost(self, inputs, targets_mask):
        targets, mask = targets_mask
        masked_input = inputs * mask
        self.outputs[:] = self.costfunc(masked_input, targets)
        self.cost[:] = self.be.mean(self.outputs, axis=1)
        return self.cost
Dummy API.
dataset/ETHPy150Open NervanaSystems/neon/neon/layers/layer.py/GeneralizedCostMask.get_cost--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/billing-export-python/cloudstorage/storage_api.py/StreamingBuffer.flush