def initialize(self, in_obj):

        assert isinstance(in_obj, Layer)
        self.prev_layer = in_obj
        (_, self.nstep) = interpret_in_shape(in_obj.out_shape)
        self.outputs = self.be.iobuf((1, self.nstep))
        self.deltas = self.be.iobuf(in_obj.out_shape,
                                    parallelism=self.prev_layer.parallelism)
        self.cost = self.be.empty((1, 1))
Extracts the Elasticsearch index document for this instance
dataset/ETHPy150Open NervanaSystems/neon/neon/layers/layer.py/GeneralizedCost.initialize--crossover with--dataset/ETHPy150Open mozilla/elasticutils/elasticutils/__init__.py/Indexable.extract_document