rullino
    Preparing search index...

    Interface OrtModule

    The parts of the onnxruntime-web module used here (pass the module itself).

    interface OrtModule {
        InferenceSession: {
            create(
                model: Uint8Array,
                options?: Record<string, unknown>,
            ): Promise<OrtSession>;
        };
        Tensor: new (
            type: "float32" | "int64" | "uint8",
            data:
                | Uint8Array<ArrayBufferLike>
                | Float32Array<ArrayBufferLike>
                | BigInt64Array<ArrayBufferLike>,
            dims: readonly number[],
        ) => OrtTensor;
    }
    Index
    InferenceSession: {
        create(
            model: Uint8Array,
            options?: Record<string, unknown>,
        ): Promise<OrtSession>;
    }
    Tensor: new (
        type: "float32" | "int64" | "uint8",
        data:
            | Uint8Array<ArrayBufferLike>
            | Float32Array<ArrayBufferLike>
            | BigInt64Array<ArrayBufferLike>,
        dims: readonly number[],
    ) => OrtTensor