@property
    def layers_to_optimize(self):
        lto = []
        for l in self.layers:
            if isinstance(l, LayerContainer):
                lto += l.layers_to_optimize
            elif l.has_params:
                if hasattr(l, 'init') and l.init.name == "Identity":
                    continue
                lto.append(l)
        return lto
dataset/ETHPy150Open NervanaSystems/neon/neon/layers/container.py/LayerContainer.layers_to_optimize/original