MCPcopy
hub / github.com/hunkim/PyTorchZeroToAll / 09_01_softmax_loss.py

File 09_01_softmax_loss.py

09_01_softmax_loss.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from torch import nn, tensor, max
2import numpy as np
3
4# Cross entropy example

Callers

nothing calls this directly

Calls 1

lossFunction · 0.70

Tested by

no test coverage detected