Skip to content

Commit bbf4780

Browse files
committed
Update on "[executorch][serialization] Rename scalar_type.fbs --> common.fbs"
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) Differential Revision: [D65442256](https://our.internmc.facebook.com/intern/diff/D65442256/) [ghstack-poisoned]
2 parents cdf4929 + 65c0d5b commit bbf4780

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

exir/TARGETS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ python_library(
4040
],
4141
)
4242

43+
# Deprecated in ExecuTorch v0.5
44+
python_library(
45+
name = "scalar_type",
46+
srcs = [
47+
"scalar_type.py",
48+
],
49+
)
50+
4351
python_library(
4452
name = "common_schema",
4553
srcs = [

exir/scalar_type.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
# pyre-unsafe
8+
9+
from executorch.exir.common_schema import ScalarType # noqa [F401] 'executorch.exir.common_schema.ScalarType' imported but unused
10+
import warnings
11+
warnings.warn("executorch.exir.scalar_type is deprecated and will be removed in a future release. Please use executorch.exir.common_schema instead", DeprecationWarning)

0 commit comments

Comments
 (0)