Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ set_optimizer
Method
set_optimizer
examples/cifar_distributed_cnn/model/cnn.py:72–73 ·
view source on GitHub ↗
(self, optimizer)
Source
from the content-addressed store, hash-verified
70
return
out, loss
71
72
def
set_optimizer(self, optimizer):
73
self.optimizer = optimizer
74
75
76
def
create_model(pretrained=False, **kwargs):
Callers
2
train_resnet
Function · 0.45
run
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected