= nn.Softmax(dim=1)(logits) predictions
Models
torch.nn.BatchNorm2d(
_num_features_,=1e-05_,
_eps=0.1_,
_momentum=True_,
_affine=True_,
_track_running_stats=None_,
_device=None_
_dtype )
One must define all layers in the __init__
in order to initialize them. Remember that forward
method will be called during training
so no layers with parameters should be defined there.
Softmax
For multi-classifications, Softmax
converts logits to predictions: