Skip to content

[Web] Inference session cannot be created with SharedArrayBuffer, only ArrayBuffer is accepted #23148

@nomagick

Description

@nomagick

Describe the issue

Inference session cannot be created with SharedArrayBuffer, only ArrayBuffer is accepted

TypeError: Invalid argument: args has to be either (modelPath, options) or (buffer, byteOffset, byteLength, options).

To reproduce

Load any model with SharedArrayBuffer

Urgency

high

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

  • onnxruntime-node 1.20.1

Execution Provider

'wasm'/'cpu' (WebAssembly CPU)

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:webissues related to ONNX Runtime web; typically submitted using templatestaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions