@sourceacademy/torch
    Preparing search index...

    Class NLLLoss

    Hierarchy

    • Loss
      • NLLLoss
    Index

    Constructors

    Properties

    training: boolean = true

    Methods

    • Entry point for running the module. Equivalent to model(x) in Python. In the future, this is where forward hooks will be triggered. Call forward() directly to bypass hooks.

      Parameters

      Returns Tensor

    • Returns this

    • Parameters

      • mode: boolean = true

      Returns this