MCPcopy Create free account
hub / github.com/apache/singa / Constant

Class Constant

python/singa/opt.py:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43class Constant(DecayScheduler):
44
45 def call(self, step: Tensor) -> Tensor:
46 # TODO should be an in-place operator
47 ret = Tensor((1,), step.device)
48 ret.set_value(self.init_value)
49 return ret
50
51
52class ExponentialDecay(DecayScheduler):

Callers 11

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected