Struct ASMoutput

Page Contents

Struct Documentation

struct ASMoutput

The output of a single invocation of an AdaptiveLogSoftmaxWithLoss module’s forward() method.

Public Functions

ASMoutput(Tensor output_, double loss_)

Public Members

Tensor output

Tensor containing computed target log probabilities for each example.

double loss

Scalar representing the computed negative log likelihood loss.


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources