import torch.optim as optim


__all__ = ["get_optimizer"]


def get_optimizer(config, net):
    optimizer = getattr(optim, config.optimizer.name)
    return optimizer(net.parameters(), \
                     **config.optimizer.params)

2394e30833e62f6cf468eea307f3b7da82c71760
<mask token>

<mask token>


def get_optimizer(config, net):
    optimizer = getattr(optim, config.optimizer.name)
    return optimizer(net.parameters(), **config.optimizer.params)

<mask token>
__all__ = ['get_optimizer']


def get_optimizer(config, net):
    optimizer = getattr(optim, config.optimizer.name)
    return optimizer(net.parameters(), **config.optimizer.params)

import torch.optim as optim
__all__ = ['get_optimizer']


def get_optimizer(config, net):
    optimizer = getattr(optim, config.optimizer.name)
    return optimizer(net.parameters(), **config.optimizer.params)

import torch.optim as optim


__all__ = ["get_optimizer"]


def get_optimizer(config, net):
    optimizer = getattr(optim, config.optimizer.name)
    return optimizer(net.parameters(), \
                     **config.optimizer.params)
