tico 0.1.0.dev250528__py3-none-any.whl → 0.1.0.dev250529__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tico/__init__.py +15 -4
- tico/serialize/circle_serializer.py +4 -0
- {tico-0.1.0.dev250528.dist-info → tico-0.1.0.dev250529.dist-info}/METADATA +1 -1
- {tico-0.1.0.dev250528.dist-info → tico-0.1.0.dev250529.dist-info}/RECORD +8 -8
- {tico-0.1.0.dev250528.dist-info → tico-0.1.0.dev250529.dist-info}/LICENSE +0 -0
- {tico-0.1.0.dev250528.dist-info → tico-0.1.0.dev250529.dist-info}/WHEEL +0 -0
- {tico-0.1.0.dev250528.dist-info → tico-0.1.0.dev250529.dist-info}/entry_points.txt +0 -0
- {tico-0.1.0.dev250528.dist-info → tico-0.1.0.dev250529.dist-info}/top_level.txt +0 -0
tico/__init__.py
CHANGED
@@ -18,14 +18,25 @@ import torch
|
|
18
18
|
from packaging.version import Version
|
19
19
|
|
20
20
|
from tico.config import CompileConfigV1, get_default_config
|
21
|
-
|
22
21
|
from tico.utils.convert import convert, convert_from_exported_program, convert_from_pt2
|
23
22
|
|
24
23
|
# THIS LINE IS AUTOMATICALLY GENERATED BY setup.py
|
25
|
-
__version__ = "0.1.0.
|
24
|
+
__version__ = "0.1.0.dev250529"
|
25
|
+
|
26
|
+
MINIMUM_SUPPORTED_VERSION = "2.5.0"
|
27
|
+
SECURE_TORCH_VERSION = "2.6.0"
|
26
28
|
|
29
|
+
if Version(torch.__version__) < Version(MINIMUM_SUPPORTED_VERSION):
|
30
|
+
warnings.warn(
|
31
|
+
f"TICO officially supports torch>={MINIMUM_SUPPORTED_VERSION}. "
|
32
|
+
f"You are using a lower version of torch ({torch.__version__}). "
|
33
|
+
f"We highly recommend to upgrade torch>={MINIMUM_SUPPORTED_VERSION} to avoid unexpected behaviors."
|
34
|
+
)
|
27
35
|
|
28
|
-
if Version(torch.__version__) < Version(
|
36
|
+
if Version(torch.__version__) < Version(SECURE_TORCH_VERSION):
|
29
37
|
warnings.warn(
|
30
|
-
f"
|
38
|
+
f"Detected PyTorch version {torch.__version__}, which may include known security vulnerabilities. "
|
39
|
+
f"We recommend upgrading to {SECURE_TORCH_VERSION} or later for better security.\n"
|
40
|
+
"Upgrade command: pip install --upgrade torch\n"
|
41
|
+
"For more details, see: https://pytorch.org/security"
|
31
42
|
)
|
@@ -190,6 +190,10 @@ def build_circle(edge_program: ExportedProgram) -> bytes:
|
|
190
190
|
# Register outputs
|
191
191
|
logger.debug("---------------Register outputs--------------")
|
192
192
|
for user_output in edge_program.graph_signature.user_outputs:
|
193
|
+
if user_output == None:
|
194
|
+
logger.debug(f"Ignore 'None' output")
|
195
|
+
continue
|
196
|
+
|
193
197
|
graph.add_output(user_output)
|
194
198
|
logger.debug(f"Registered output: {user_output}")
|
195
199
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
tico/__init__.py,sha256=
|
1
|
+
tico/__init__.py,sha256=Kb5IbIgf231eEaTOQPwejW7YylbiTAvFDd422yMVae0,1743
|
2
2
|
tico/pt2_to_circle.py,sha256=PPmFNw20jw2Z2VyM3ln9pX__jTzBOAZiv0gT5a-p-Y8,2666
|
3
3
|
tico/config/__init__.py,sha256=xZzCXjZ84qE-CsBi-dfaL05bqpQ3stKKfTXhnrJRyVs,142
|
4
4
|
tico/config/base.py,sha256=anwOiJFkUxUi7Cef573JgQcjk6S-FSi6O_TLjYASW-g,1244
|
@@ -95,7 +95,7 @@ tico/passes/segment_index_select.py,sha256=ifXOIFC12lNwsB-s3k1cJcMHP3UEijPpkMAbw
|
|
95
95
|
tico/serialize/__init__.py,sha256=IO6FP_xYbGy0dW0HL26GXD3ouxARaxCK7bz9dn4blPQ,26
|
96
96
|
tico/serialize/circle_graph.py,sha256=l9fcvV4x3L5Bh2WmEseo--0KFjSVTrlSBaBrqbrmXgg,9498
|
97
97
|
tico/serialize/circle_mapping.py,sha256=C9C3ORACQOdvBdnt5KRzlT8zao_TvzQklIxH794OhP0,5719
|
98
|
-
tico/serialize/circle_serializer.py,sha256=
|
98
|
+
tico/serialize/circle_serializer.py,sha256=gJP2QEY7hFrlP_I4JRnnMehThr9ay9SUyoOQ2ppJBl0,8859
|
99
99
|
tico/serialize/pack.py,sha256=5HZ9kX3x6C6CyT_FWS6FRmvx_P7Dx21orjUNQxJ2xlo,1297
|
100
100
|
tico/serialize/quant_param.py,sha256=s97GJyDOZULnqFUWPakHais31G_qqPuO0awPHCkZDvI,1342
|
101
101
|
tico/serialize/operators/__init__.py,sha256=LIvXsNnN4yUCS2CGNQ5XW8p8oXDTV_WHWuOEAw1t6WY,990
|
@@ -194,9 +194,9 @@ tico/utils/mx/__init__.py,sha256=IO6FP_xYbGy0dW0HL26GXD3ouxARaxCK7bz9dn4blPQ,26
|
|
194
194
|
tico/utils/mx/elemwise_ops.py,sha256=V6glyAHsVR1joqpsgnNytatCD_ew92xNWZ19UFDoMTA,10281
|
195
195
|
tico/utils/mx/formats.py,sha256=uzNWyu-1onUlwQfX5cZ6fZSUfHMRqorper7_T1k3jfk,3404
|
196
196
|
tico/utils/mx/mx_ops.py,sha256=RcfUTYVi-wilGB2sC35OeARdwDqnixv7dG5iyZ-fQT8,8555
|
197
|
-
tico-0.1.0.
|
198
|
-
tico-0.1.0.
|
199
|
-
tico-0.1.0.
|
200
|
-
tico-0.1.0.
|
201
|
-
tico-0.1.0.
|
202
|
-
tico-0.1.0.
|
197
|
+
tico-0.1.0.dev250529.dist-info/LICENSE,sha256=kp4JLII7bzRhPb0CPD5XTDZMh22BQ7h3k3B7t8TiSbw,12644
|
198
|
+
tico-0.1.0.dev250529.dist-info/METADATA,sha256=YO_KwNVCiSctvJUCj2KBt-D3DfPRQBv84EstPesXEmE,8633
|
199
|
+
tico-0.1.0.dev250529.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
200
|
+
tico-0.1.0.dev250529.dist-info/entry_points.txt,sha256=kBKYSS_IYrSXmUYevmmepqIVPScq5vF8ulQRu3I_Zf0,59
|
201
|
+
tico-0.1.0.dev250529.dist-info/top_level.txt,sha256=oqs7UPoNSKZEwqsX8B-KAWdQwfAa7i60pbxW_Jk7P3w,5
|
202
|
+
tico-0.1.0.dev250529.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|