def make_optimizable_func(self, loss=None):
    loss = (loss or self.network.loss)
    loss = as_tftensor(loss)
    func = self.make_func()
    func.add_extra_op(self.optimizer.minimize(loss))
    return func
def make_optimizable_func(self, loss=None):
    loss = (loss or self.network.loss)
    loss = as_tftensor(loss)
    func = self.make_func()
    func.add_extra_op(self.optimizer.minimize(loss))
    return func