Klasse OnnxSparseTensor.COOTensor

    • Konstruktor-Detail

      • COOTensor

        public COOTensor​(java.nio.LongBuffer indices,
                         long[] indicesShape,
                         java.nio.Buffer values,
                         long[] denseShape,
                         OnnxJavaType type,
                         long numNonZero)
        Erstellt einen COO-Sparse-Tensor, der für die Erstellung eines ORT Sparse Tensor geeignet ist.
        Parameter
        indices - Die Indizes. Sollte ein 1D-Vektor oder ein 2D-Vektor sein.
        indicesShape - Die Form der Indizes.
        values - Die Daten.
        denseShape - Die dichte Form.
        type - Der Datentyp.
        numNonZero - Die Anzahl der Nicht-Null-Elemente.