Chalkboard - v3.1.0
    Preparing search index...

    Function random

    • Initializes a random tensor.

      Parameters

      • inf: number

        The lower bound

      • sup: number

        The upper bound

      • ...shape: number[]

        The shape

      Returns ChalkboardTensor

      const result = Chalkboard.tens.random(-1, 1, 2, 2, 2); // Returns a random 2x2x2 tensor