def forward(self, x):
    out_model = self.model
    if (self.model.loss in obj.MFOM_OBJECTIVES):
        input = self.model.get_layer(name='input').output
        preact = self.model.get_layer(name='output').output
        out_model = Model(input=input, output=preact)
    return out_model.predict(x)
def forward(self, x):
    out_model = self.model
    if (self.model.loss in obj.MFOM_OBJECTIVES):
        input = self.model.get_layer(name='input').output
        preact = self.model.get_layer(name='output').output
        out_model = Model(input=input, output=preact)
    return out_model.predict(x)