MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / set_optimizer

Method set_optimizer

models/vat/vat.py:64–66  ·  view source on GitHub ↗
(self, optimizer, scheduler=None)

Source from the content-addressed store, hash-verified

62 self.print_fn(f'[!] data loader keys: {self.loader_dict.keys()}')
63
64 def set_optimizer(self, optimizer, scheduler=None):
65 self.optimizer = optimizer
66 self.scheduler = scheduler
67
68 def train(self, args):
69

Callers 13

main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45
main_workerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected