Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/davda54/sam
/ train.py
File
train.py
example/train.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
argparse
2
import
torch
3
4
from
model.wide_res_net
import
WideResNet
Callers
nothing calls this directly
Calls
15
initialize
Function · 0.90
Cifar
Class · 0.90
Log
Class · 0.90
WideResNet
Class · 0.90
SAM
Class · 0.90
StepLR
Class · 0.90
enable_running_stats
Function · 0.90
smooth_crossentropy
Function · 0.90
disable_running_stats
Function · 0.90
train
Method · 0.80
first_step
Method · 0.80
second_step
Method · 0.80
Tested by
no test coverage detected