Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ set_optimizer
Method
set_optimizer
examples/trans/model.py:101–102 ·
view source on GitHub ↗
(self, opt)
Source
from the content-addressed store, hash-verified
99
return
out, loss, acc
100
101
def
set_optimizer(self, opt):
102
self.opt = opt
103
104
105
class
TransformerDecoder(layer.Layer):
Callers
1
run
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected