TorchLean API

NN.Runtime.Autograd.Torch.Core.Session.References

Session References #

Tensor and integer handles carry both a session owner and a recording generation. Check those before using an id: resetting a tape can reuse the same numeric index.

Capture the current owner and generation for a newly recorded handle.

Instances For

    Construct a tensor handle owned by the current recording phase.

    Instances For

      Construct a non-differentiable handle owned by the current recording phase.

      Instances For

        Validate one tensor handle before using its numeric tape id.

        Instances For

          Validate tensor handles consumed by one operation.

          Instances For

            Validate one non-differentiable handle before using its environment index.

            Instances For

              Record a non-differentiable Nat input in the session environment.

              This supports ops that depend on indices/labels that should not receive gradients.

              Instances For

                Read a previously recorded NatRef.

                Instances For

                  Overwrite a previously recorded NatRef.

                  Instances For