Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ nll
Function
nll
beginner_source/nn_tutorial.py:165–166 ·
view source on GitHub ↗
(input, target)
Source
from the content-addressed store, hash-verified
163
164
165
def
nll(input, target):
166
return
-input[range(target.shape[0]), target].mean()
167
168
loss_func = nll
169
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected