Skip to content

Commit ded4396

Browse files
committed
[executorch][serialization] Rename scalar_type.fbs --> common.fbs
Pull Request resolved: #6678 Allow us to add other shared flatbuffer types into `common.fbs`. - Rename scalar_type.fbs --> common.fbs - Rename scalar_type.py --> common_schema.py (differentiate from exir/common.py) ghstack-source-id: 251992035 @exported-using-ghexport Differential Revision: [D65442256](https://our.internmc.facebook.com/intern/diff/D65442256/)
1 parent cd565b5 commit ded4396

33 files changed

+79
-77
lines changed

.ci/scripts/build-qnn-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ set_up_aot() {
4242

4343
# Workaround for fbs files in exir/_serialize
4444
cp schema/program.fbs exir/_serialize/program.fbs
45-
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
45+
cp schema/common.fbs exir/_serialize/common.fbs
4646
}
4747

4848
build_qnn_backend

.ci/scripts/test_llama.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if [[ "${MODE}" =~ .*qnn.* ]]; then
7979
export LD_LIBRARY_PATH="${QNN_SDK_ROOT}/lib/x86_64-linux-clang"
8080
export PYTHONPATH=".."
8181
cp schema/program.fbs exir/_serialize/program.fbs
82-
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
82+
cp schema/common.fbs exir/_serialize/common.fbs
8383
cp -f build-x86/backends/qualcomm/PyQnnManagerAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
8484
cp -f build-x86/backends/qualcomm/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
8585

backends/qualcomm/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if [ "$BUILD_X86_64" = true ]; then
136136
rm -f $PRJ_ROOT/backends/qualcomm/python/*
137137
cp -fv $BUILD_ROOT/backends/qualcomm/Py* "$PRJ_ROOT/backends/qualcomm/python"
138138
cp -fv "$PRJ_ROOT/schema/program.fbs" "$PRJ_ROOT/exir/_serialize/program.fbs"
139-
cp -fv "$PRJ_ROOT/schema/scalar_type.fbs" "$PRJ_ROOT/exir/_serialize/scalar_type.fbs"
139+
cp -fv "$PRJ_ROOT/schema/common.fbs" "$PRJ_ROOT/exir/_serialize/common.fbs"
140140

141141
EXAMPLE_ROOT=examples/qualcomm
142142
CMAKE_PREFIX_PATH="${BUILD_ROOT}/lib/cmake/ExecuTorch;${BUILD_ROOT}/third-party/gflags;"

devtools/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ if(NOT FLATC_EXECUTABLE)
3737
endif()
3838

3939
# Paths to headers generated from the .fbs files. set(_etdump_schemas
40-
# etdump_schema_flatcc.fbs scalar_type.fbs)
40+
# etdump_schema_flatcc.fbs common.fbs)
4141

42-
set(_etdump_schema_names "etdump_schema_flatcc.fbs" "scalar_type.fbs")
43-
set(_bundled_input_schema_names "bundled_program_schema.fbs" "scalar_type.fbs")
42+
set(_etdump_schema_names "etdump_schema_flatcc.fbs" "common.fbs")
43+
set(_bundled_input_schema_names "bundled_program_schema.fbs" "common.fbs")
4444

4545
foreach(schema_file ${_etdump_schema_names})
4646
list(APPEND _etdump_schema__srcs

devtools/bundled_program/schema/TARGETS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ runtime.python_library(
1919
"//executorch/devtools/etrecord/...",
2020
],
2121
deps = [
22-
"//executorch/exir:scalar_type",
22+
"//executorch/exir:common_schema",
2323
],
2424
)

devtools/bundled_program/schema/bundled_program_schema.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// See README.md before modifying this file.
55
//
66

7-
include "scalar_type.fbs";
7+
include "common.fbs";
88

99
namespace bundled_program_flatbuffer;
1010

devtools/bundled_program/schema/bundled_program_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from dataclasses import dataclass
1010
from typing import List, Union
1111

12-
from executorch.exir.scalar_type import ScalarType
12+
from executorch.exir.common_schema import ScalarType
1313

1414

1515
@dataclass

devtools/bundled_program/schema/targets.bzl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

3-
BUNLDED_STEM = "bundled_program_schema"
4-
SCALAR_TYPE_STEM = "scalar_type"
3+
BUNDLED_STEM = "bundled_program_schema"
4+
COMMON_STEM = "common"
55

6-
INPUT_BUNDLED = BUNLDED_STEM + ".fbs"
7-
INPUT_SCALAR_TYPE = SCALAR_TYPE_STEM + ".fbs"
6+
INPUT_BUNDLED = BUNDLED_STEM + ".fbs"
7+
INPUT_COMMON = COMMON_STEM + ".fbs"
88

9-
OUTPUT_BUNDLED_HEADER = BUNLDED_STEM + "_generated.h"
10-
OUTPUT_SCALAR_TYPE_HEADER = SCALAR_TYPE_STEM + "_generated.h"
9+
OUTPUT_BUNDLED_HEADER = BUNDLED_STEM + "_generated.h"
10+
OUTPUT_COMMON_HEADER = COMMON_STEM + "_generated.h"
1111

1212
BUNDLED_GEN_RULE_NAME = "generate_bundled_program"
1313

14-
BUNDLED_LIBRARY_NAME = BUNLDED_STEM + "_fbs"
14+
BUNDLED_LIBRARY_NAME = BUNDLED_STEM + "_fbs"
1515

1616
def _generate_schema_header(rule_name, srcs, headers, default_header):
1717
"""Generate header file given flatbuffer schema
@@ -54,16 +54,16 @@ def define_common_targets():
5454
)
5555

5656
runtime.export_file(
57-
name = INPUT_SCALAR_TYPE,
57+
name = INPUT_COMMON,
5858
visibility = [
5959
"//executorch/devtools/bundled_program/serialize/...",
6060
],
6161
)
6262

6363
_generate_schema_header(
6464
BUNDLED_GEN_RULE_NAME,
65-
[INPUT_BUNDLED, INPUT_SCALAR_TYPE],
66-
[OUTPUT_BUNDLED_HEADER, OUTPUT_SCALAR_TYPE_HEADER],
65+
[INPUT_BUNDLED, INPUT_COMMON],
66+
[OUTPUT_BUNDLED_HEADER, OUTPUT_COMMON_HEADER],
6767
OUTPUT_BUNDLED_HEADER,
6868
)
6969

@@ -77,7 +77,7 @@ def define_common_targets():
7777
],
7878
exported_headers = {
7979
OUTPUT_BUNDLED_HEADER: ":{}[{}]".format(BUNDLED_GEN_RULE_NAME, OUTPUT_BUNDLED_HEADER),
80-
OUTPUT_SCALAR_TYPE_HEADER: ":{}[{}]".format(BUNDLED_GEN_RULE_NAME, OUTPUT_SCALAR_TYPE_HEADER),
80+
OUTPUT_COMMON_HEADER: ":{}[{}]".format(BUNDLED_GEN_RULE_NAME, OUTPUT_COMMON_HEADER),
8181
},
8282
exported_external_deps = ["flatbuffers-api"],
8383
)

devtools/bundled_program/schema/test/test_schema.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
class TestSchema(unittest.TestCase):
1515
def test_schema_sync(self) -> None:
1616
# make the test work in both internal and oss.
17-
prefix = (
18-
"executorch/" if os.path.exists("executorch/schema/scalar_type.fbs") else ""
19-
)
17+
prefix = ("executorch/" if os.path.exists("executorch/schema/common.fbs") else "")
2018

2119
self.assertTrue(
2220
filecmp.cmp(
23-
prefix + "devtools/bundled_program/schema/scalar_type.fbs",
24-
prefix + "schema/scalar_type.fbs",
21+
prefix + "devtools/bundled_program/schema/common.fbs",
22+
prefix + "schema/common.fbs",
2523
),
26-
'Please run "hg cp fbcode//executorch/schema/scalar_type.fbs fbcode//executorch/devtools/bundled_program/schema/scalar_type.fbs" to sync schema changes.',
24+
'Please run "hg cp fbcode//executorch/schema/common.fbs fbcode//executorch/devtools/bundled_program/schema/common.fbs" to sync schema changes.',
2725
)

devtools/bundled_program/serialize/TARGETS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runtime.python_library(
1111
],
1212
resources = {
1313
"//executorch/devtools/bundled_program/schema:bundled_program_schema.fbs": "bundled_program_schema.fbs",
14-
"//executorch/devtools/bundled_program/schema:scalar_type.fbs": "scalar_type.fbs",
14+
"//executorch/devtools/bundled_program/schema:common.fbs": "common.fbs",
1515
},
1616
# Currently serialization API should only be used in some dedicated targets,
1717
# to avoid ODR violation when linking with another Flatbuffers library.

devtools/bundled_program/serialize/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# The prefix of schema files used for bundled program
2525
BUNDLED_PROGRAM_SCHEMA_NAME = "bundled_program_schema"
26-
SCALAR_TYPE_SCHEMA_NAME = "scalar_type"
26+
COMMON_SCHEMA_NAME = "common"
2727

2828

2929
def write_schema(d: str, schema_name: str) -> None:
@@ -51,7 +51,7 @@ def convert_to_flatbuffer(program_json: str) -> bytes:
5151
with tempfile.TemporaryDirectory() as d:
5252
# load given and common schema
5353
write_schema(d, BUNDLED_PROGRAM_SCHEMA_NAME)
54-
write_schema(d, SCALAR_TYPE_SCHEMA_NAME)
54+
write_schema(d, COMMON_SCHEMA_NAME)
5555

5656
schema_path = os.path.join(d, "{}.fbs".format(BUNDLED_PROGRAM_SCHEMA_NAME))
5757
json_path = os.path.join(d, "{}.json".format(BUNDLED_PROGRAM_SCHEMA_NAME))
@@ -66,7 +66,7 @@ def convert_to_flatbuffer(program_json: str) -> bytes:
6666
def convert_from_flatbuffer(program_flatbuffer: bytes) -> bytes:
6767
with tempfile.TemporaryDirectory() as d:
6868
write_schema(d, BUNDLED_PROGRAM_SCHEMA_NAME)
69-
write_schema(d, SCALAR_TYPE_SCHEMA_NAME)
69+
write_schema(d, COMMON_SCHEMA_NAME)
7070

7171
schema_path = os.path.join(d, "{}.fbs".format(BUNDLED_PROGRAM_SCHEMA_NAME))
7272
bin_path = os.path.join(d, "schema.bin")

devtools/etdump/TARGETS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runtime.python_library(
1414
"//executorch/devtools/...",
1515
],
1616
deps = [
17-
"//executorch/exir:scalar_type",
17+
"//executorch/exir:common_schema",
1818
],
1919
)
2020

@@ -25,7 +25,7 @@ runtime.python_library(
2525
],
2626
resources = {
2727
"//executorch/devtools/etdump:etdump_schema_flatcc.fbs": "etdump_schema_flatcc.fbs",
28-
"//executorch/schema:scalar_type.fbs": "scalar_type.fbs",
28+
"//executorch/schema:common.fbs": "common.fbs",
2929
},
3030
visibility = [
3131
"//executorch/devtools/...",
File renamed without changes.

devtools/etdump/etdump_schema_flatcc.fbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include "scalar_type.fbs";
1+
include "common.fbs";
22

33
namespace etdump;
44

devtools/etdump/schema_flatcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from enum import Enum
1616
from typing import List, Optional
1717

18-
from executorch.exir.scalar_type import ScalarType
18+
from executorch.exir.common_schema import ScalarType
1919

2020

2121
@dataclass

devtools/etdump/serialize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
# The prefix of schema files used for etdump
2121
ETDUMP_FLATCC_SCHEMA_NAME = "etdump_schema_flatcc"
22-
SCALAR_TYPE_SCHEMA_NAME = "scalar_type"
22+
COMMON_SCHEMA_NAME = "common"
2323

2424

2525
def _write_schema(d: str, schema_name: str) -> None:
@@ -49,7 +49,7 @@ def _convert_to_flatcc(etdump_json: str) -> bytes:
4949
with tempfile.TemporaryDirectory() as d:
5050
# load given and common schema
5151
_write_schema(d, ETDUMP_FLATCC_SCHEMA_NAME)
52-
_write_schema(d, SCALAR_TYPE_SCHEMA_NAME)
52+
_write_schema(d, COMMON_SCHEMA_NAME)
5353

5454
schema_path = os.path.join(d, "{}.fbs".format(ETDUMP_FLATCC_SCHEMA_NAME))
5555
json_path = os.path.join(d, "{}.json".format(ETDUMP_FLATCC_SCHEMA_NAME))
@@ -65,7 +65,7 @@ def _convert_to_flatcc(etdump_json: str) -> bytes:
6565
def _convert_from_flatcc(etdump_flatbuffer: bytes, size_prefixed: bool = True) -> bytes:
6666
with tempfile.TemporaryDirectory() as d:
6767
_write_schema(d, ETDUMP_FLATCC_SCHEMA_NAME)
68-
_write_schema(d, SCALAR_TYPE_SCHEMA_NAME)
68+
_write_schema(d, COMMON_SCHEMA_NAME)
6969

7070
schema_path = os.path.join(d, "{}.fbs".format(ETDUMP_FLATCC_SCHEMA_NAME))
7171
bin_path = os.path.join(d, "schema.bin")

devtools/etdump/targets.bzl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

3-
SCALAR_TYPE_STEM = "scalar_type"
4-
SCALAR_TYPE = SCALAR_TYPE_STEM + ".fbs"
3+
COMMON_STEM = "common"
4+
COMMON = COMMON_STEM + ".fbs"
55

66
# flatcc
77
ETDUMP_STEM_FLATCC = "etdump_schema_flatcc"
@@ -12,9 +12,9 @@ ETDUMP_SCHEMA_FLATCC_BUILDER = ETDUMP_STEM_FLATCC + "_builder.h"
1212
ETDUMP_SCHEMA_FLATCC_READER = ETDUMP_STEM_FLATCC + "_reader.h"
1313
ETDUMP_SCHEMA_FLATCC_VERIFIER = ETDUMP_STEM_FLATCC + "_verifier.h"
1414

15-
SCALAR_TYPE_BUILDER = SCALAR_TYPE_STEM + "_builder.h"
16-
SCALAR_TYPE_READER = SCALAR_TYPE_STEM + "_reader.h"
17-
SCALAR_TYPE_VERIFIER = SCALAR_TYPE_STEM + "_verifier.h"
15+
COMMON_BUILDER = COMMON_STEM + "_builder.h"
16+
COMMON_READER = COMMON_STEM + "_reader.h"
17+
COMMON_VERIFIER = COMMON_STEM + "_verifier.h"
1818

1919
FLATBUFFERS_COMMON_STEM = "flatbuffers_common"
2020
FLATBUFFERS_COMMON_BUILDER = FLATBUFFERS_COMMON_STEM + "_builder.h"
@@ -52,14 +52,14 @@ def define_common_targets():
5252

5353
generate_schema_header_flatcc(
5454
ETDUMP_GEN_RULE_NAME_FLATCC,
55-
[ETDUMP_SCHEMA_FLATCC, SCALAR_TYPE],
55+
[ETDUMP_SCHEMA_FLATCC, COMMON],
5656
[
5757
ETDUMP_SCHEMA_FLATCC_BUILDER,
5858
ETDUMP_SCHEMA_FLATCC_READER,
5959
ETDUMP_SCHEMA_FLATCC_VERIFIER,
60-
SCALAR_TYPE_BUILDER,
61-
SCALAR_TYPE_READER,
62-
SCALAR_TYPE_VERIFIER,
60+
COMMON_BUILDER,
61+
COMMON_READER,
62+
COMMON_VERIFIER,
6363
FLATBUFFERS_COMMON_BUILDER,
6464
FLATBUFFERS_COMMON_READER,
6565
],
@@ -78,9 +78,9 @@ def define_common_targets():
7878
ETDUMP_SCHEMA_FLATCC_BUILDER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, ETDUMP_SCHEMA_FLATCC_BUILDER),
7979
ETDUMP_SCHEMA_FLATCC_READER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, ETDUMP_SCHEMA_FLATCC_READER),
8080
ETDUMP_SCHEMA_FLATCC_VERIFIER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, ETDUMP_SCHEMA_FLATCC_VERIFIER),
81-
SCALAR_TYPE_BUILDER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, SCALAR_TYPE_BUILDER),
82-
SCALAR_TYPE_READER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, SCALAR_TYPE_READER),
83-
SCALAR_TYPE_VERIFIER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, SCALAR_TYPE_VERIFIER),
81+
COMMON_BUILDER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, COMMON_BUILDER),
82+
COMMON_READER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, COMMON_READER),
83+
COMMON_VERIFIER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, COMMON_VERIFIER),
8484
FLATBUFFERS_COMMON_BUILDER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, FLATBUFFERS_COMMON_BUILDER),
8585
FLATBUFFERS_COMMON_READER: ":{}[{}]".format(ETDUMP_GEN_RULE_NAME_FLATCC, FLATBUFFERS_COMMON_READER),
8686
},

docs/source/build-run-qualcomm-ai-engine-direct-backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ cp -f backends/qualcomm/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so $EXE
150150

151151
# Workaround for fbs files in exir/_serialize
152152
cp $EXECUTORCH_ROOT/schema/program.fbs $EXECUTORCH_ROOT/exir/_serialize/program.fbs
153-
cp $EXECUTORCH_ROOT/schema/scalar_type.fbs $EXECUTORCH_ROOT/exir/_serialize/scalar_type.fbs
153+
cp $EXECUTORCH_ROOT/schema/common.fbs $EXECUTORCH_ROOT/exir/_serialize/common.fbs
154154
```
155155

156156
### Runtime:

examples/demo-apps/android/LlamaDemo/docs/delegates/qualcomm_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export EXECUTORCH_ROOT=$HOME/repos/executorch
4646
export LD_LIBRARY_PATH=$QNN_SDK_ROOT/lib/x86_64-linux-clang/:$LD_LIBRARY_PATH
4747
export PYTHONPATH=$EXECUTORCH_ROOT/..
4848
cp schema/program.fbs exir/_serialize/program.fbs
49-
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
49+
cp schema/common.fbs exir/_serialize/common.fbs
5050
```
5151

5252
### Build QNN backend with ExecuTorch

exir/TARGETS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ python_library(
4141
)
4242

4343
python_library(
44-
name = "scalar_type",
44+
name = "common_schema",
4545
srcs = [
46-
"scalar_type.py",
46+
"common_schema.py",
4747
],
4848
)
4949

@@ -53,7 +53,7 @@ python_library(
5353
"schema.py",
5454
],
5555
deps = [
56-
":scalar_type",
56+
":common_schema",
5757
"//executorch/exir/backend:compile_spec_schema",
5858
],
5959
)

exir/_serialize/TARGETS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ runtime.python_library(
3636
],
3737
resources = {
3838
"//executorch/schema:program.fbs": "program.fbs",
39-
"//executorch/schema:scalar_type.fbs": "scalar_type.fbs",
39+
"//executorch/schema:common.fbs": "common.fbs",
4040
"fbsource//third-party/flatbuffers:flatc-host": "flatbuffers-flatc",
4141
},
4242
# Currently serialization API should only be used in some dedicated targets,

exir/_serialize/_flatbuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _prepare_schema(
143143
"""
144144
program_schema = "program.fbs"
145145
# Included by the root program schema; must also be present.
146-
deps = ["scalar_type.fbs"]
146+
deps = ["common.fbs"]
147147

148148
schemas = _ResourceFiles([program_schema] + deps)
149149

exir/_serialize/test/test_flatbuffer.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77

8+
# pyre-unsafe
9+
810
import os
911
import re
1012
import shutil
@@ -85,7 +87,7 @@ def test_load_patch_and_write(self) -> None:
8587
b"}",
8688
]
8789
),
88-
"scalar_type.fbs": b"\n".join(
90+
"common.fbs": b"\n".join(
8991
[
9092
b"table ScalarType {",
9193
# Spaces around the colon.
@@ -156,7 +158,7 @@ def test_update_tensor_alignment(self) -> None:
156158
),
157159
)
158160
self.assertEqual(
159-
read_file(out_dir, "scalar_type.fbs"),
161+
read_file(out_dir, "common.fbs"),
160162
b"\n".join(
161163
[
162164
b"table ScalarType {",
@@ -192,7 +194,7 @@ def test_update_delegate_alignment(self) -> None:
192194
),
193195
)
194196
self.assertEqual(
195-
read_file(out_dir, "scalar_type.fbs"),
197+
read_file(out_dir, "common.fbs"),
196198
b"\n".join(
197199
[
198200
b"table ScalarType {",
@@ -232,7 +234,7 @@ def test_update_tensor_and_delegate_alignment(self) -> None:
232234
),
233235
)
234236
self.assertEqual(
235-
read_file(out_dir, "scalar_type.fbs"),
237+
read_file(out_dir, "common.fbs"),
236238
b"\n".join(
237239
[
238240
b"table ScalarType {",
File renamed without changes.

0 commit comments

Comments
 (0)