MCPcopy Index your code
hub / github.com/pytorch/pytorch / build_sgd

Function build_sgd

caffe2/python/optimizer.py:2200–2213  ·  view source on GitHub ↗
(
    model,
    base_learning_rate,
    max_gradient_norm=None,
    allow_lr_injection=False,
    **kwargs
)

Source from the content-addressed store, hash-verified

2198
2199
2200def build_sgd(
2201 model,
2202 base_learning_rate,
2203 max_gradient_norm=None,
2204 allow_lr_injection=False,
2205 **kwargs
2206):
2207 sgd_optimizer = SgdOptimizer(base_learning_rate, **kwargs)
2208 return _build(
2209 model,
2210 sgd_optimizer,
2211 max_gradient_norm=max_gradient_norm,
2212 allow_lr_injection=allow_lr_injection,
2213 )
2214
2215
2216def build_multi_precision_sgd(

Callers 6

build_optimizerMethod · 0.90
build_optimizerMethod · 0.90
build_optimizerMethod · 0.90
test_weight_decayMethod · 0.90
CreateModelMethod · 0.90

Calls 2

SgdOptimizerClass · 0.85
_buildFunction · 0.85

Tested by 5

build_optimizerMethod · 0.72
build_optimizerMethod · 0.72
build_optimizerMethod · 0.72
test_weight_decayMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…