onnxruntime/js/web/lib/onnxjs/ort-schema/flatbuffers
Yulong Wang 6bbf1bd948
[js/web] upgrade version of flatbuffers (#23545)
### Description

Upgrade version of flatbuffers to latest. This change fixes #23361.
2025-01-31 10:28:53 -08:00
..
onnxruntime [js/web] upgrade version of flatbuffers (#23545) 2025-01-31 10:28:53 -08:00
ort-generated.ts [js/web] upgrade version of flatbuffers (#23545) 2025-01-31 10:28:53 -08:00
README.md [js/web] upgrade version of flatbuffers (#23545) 2025-01-31 10:28:53 -08:00

ORT Format File

This directory contains the generated ts file necessary to support the ORT file format. The file is generated from the ORT file format schema. Please do not directly modify the generated ts header file.

The ORT file format schema uses FlatBuffers serialization library. To update its generated ts file,

  1. Download or locate the ort.fbs file.
  2. Download FlatBuffers compiler: Download the latest flatc tool (Windows.flatc.binary.zip) from Flatbuffers Release Page. Unzip and run

> flatc.exe --ts ort.fbs

copy the generated folder onnxruntime to js/web/lib/onnxjs/ort-schema/flatbuffers/ directory.

Update ort-generated.ts to re-export from the generated file fbs.ts under the onnxruntime directory.