'Expose the hidden features of a model given a layer name.
:param x: A symbolic representation of the network input
:param layer: The name of the hidden layer to return features at.
:return: A symbolic representation of the hidden features'

def get_layer(self, x, layer):

    return self.fprop(x)[layer]
