MCPcopy Create free account
hub / github.com/alexrame/fishr / opt

Method opt

domainbed/algorithms.py:778–779  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

776 # resnet_s.network.fc)
777
778 def opt(p):
779 return torch.optim.Adam(p, lr=hparams["lr"], weight_decay=hparams["weight_decay"])
780
781 self.optimizer_f = opt(self.network_f.parameters())
782 self.optimizer_c = opt(self.network_c.parameters())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected