@sourceacademy/torch
    Preparing search index...

    Class MaxPool2d

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • kernel_size: number | number[]
      • Optionalstride: number | number[]
      • padding: number | number[] = 0

      Returns MaxPool2d

    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

    • Parameters

      • mode: boolean = true

      Returns this