MCPcopy Index your code
hub / github.com/pytorch/tutorials / model

Function model

beginner_source/nn_tutorial.py:141–142  ·  view source on GitHub ↗
(xb)

Source from the content-addressed store, hash-verified

139 return x - x.exp().sum(-1).log().unsqueeze(-1)
140
141def model(xb):
142 return log_softmax(xb @ weights + bias)
143
144######################################################################################
145# In the above, the ``@`` stands for the matrix multiplication operation. We will call

Callers 15

train_func_per_workerFunction · 0.70
testFunction · 0.70
profiler.pyFile · 0.70
run_training_acFunction · 0.70
run_training_cleanFunction · 0.70
run_training_with_bugFunction · 0.70
nn_tutorial.pyFile · 0.70
fitFunction · 0.70
loss_batchFunction · 0.70
train_modelFunction · 0.70

Calls 1

log_softmaxFunction · 0.85

Tested by 2

test_multiple_outputsFunction · 0.56
test_loopFunction · 0.40