tico 0.1.0.dev250615__py3-none-any.whl → 0.1.0.dev250616__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 CHANGED
@@ -21,7 +21,7 @@ from tico.config import CompileConfigV1, get_default_config
21
21
  from tico.utils.convert import convert, convert_from_exported_program, convert_from_pt2
22
22
 
23
23
  # THIS LINE IS AUTOMATICALLY GENERATED BY setup.py
24
- __version__ = "0.1.0.dev250615"
24
+ __version__ = "0.1.0.dev250616"
25
25
 
26
26
  MINIMUM_SUPPORTED_VERSION = "2.5.0"
27
27
  SECURE_TORCH_VERSION = "2.6.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tico
3
- Version: 0.1.0.dev250615
3
+ Version: 0.1.0.dev250616
4
4
  Summary: Convert exported Torch module to circle
5
5
  Home-page: UNKNOWN
6
6
  License: UNKNOWN
@@ -105,10 +105,15 @@ You can convert a torch module to a circle model with these steps.
105
105
  torch_module = AddModule()
106
106
  example_inputs = (torch.ones(4), torch.ones(4))
107
107
 
108
- circle_model = tico.convert(torch_module, example_inputs)
108
+ circle_model = tico.convert(torch_module.eval(), example_inputs)
109
109
  circle_model.save('add.circle')
110
110
  ```
111
111
 
112
+ **NOTE**
113
+ Please make sure to call `eval()` on the PyTorch module before passing it to our API.
114
+ This ensures the model runs in inference mode, disabling layers like dropout and
115
+ batch normalization updates.
116
+
112
117
  **Compile with configuration**
113
118
 
114
119
  ```python
@@ -1,4 +1,4 @@
1
- tico/__init__.py,sha256=fkjta1ZDIM7XwvZ38hPS7KW9I2q97nmuKM96UsxWwkM,1743
1
+ tico/__init__.py,sha256=C7LzUiiXkYNLAtSEQwbhwUac4-sXXzDB7nzZccomIWo,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
@@ -196,9 +196,9 @@ tico/utils/mx/__init__.py,sha256=IO6FP_xYbGy0dW0HL26GXD3ouxARaxCK7bz9dn4blPQ,26
196
196
  tico/utils/mx/elemwise_ops.py,sha256=V6glyAHsVR1joqpsgnNytatCD_ew92xNWZ19UFDoMTA,10281
197
197
  tico/utils/mx/formats.py,sha256=uzNWyu-1onUlwQfX5cZ6fZSUfHMRqorper7_T1k3jfk,3404
198
198
  tico/utils/mx/mx_ops.py,sha256=RcfUTYVi-wilGB2sC35OeARdwDqnixv7dG5iyZ-fQT8,8555
199
- tico-0.1.0.dev250615.dist-info/LICENSE,sha256=kp4JLII7bzRhPb0CPD5XTDZMh22BQ7h3k3B7t8TiSbw,12644
200
- tico-0.1.0.dev250615.dist-info/METADATA,sha256=oDSWeOeldKKckbq0C5G03O_iWL2fJP92uzcjpPBdMsM,8633
201
- tico-0.1.0.dev250615.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
202
- tico-0.1.0.dev250615.dist-info/entry_points.txt,sha256=kBKYSS_IYrSXmUYevmmepqIVPScq5vF8ulQRu3I_Zf0,59
203
- tico-0.1.0.dev250615.dist-info/top_level.txt,sha256=oqs7UPoNSKZEwqsX8B-KAWdQwfAa7i60pbxW_Jk7P3w,5
204
- tico-0.1.0.dev250615.dist-info/RECORD,,
199
+ tico-0.1.0.dev250616.dist-info/LICENSE,sha256=kp4JLII7bzRhPb0CPD5XTDZMh22BQ7h3k3B7t8TiSbw,12644
200
+ tico-0.1.0.dev250616.dist-info/METADATA,sha256=gEVJ9bVRXMqIw5UOqPGS-j3CV7dkmpuFC35cZxg3sBk,8846
201
+ tico-0.1.0.dev250616.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
202
+ tico-0.1.0.dev250616.dist-info/entry_points.txt,sha256=kBKYSS_IYrSXmUYevmmepqIVPScq5vF8ulQRu3I_Zf0,59
203
+ tico-0.1.0.dev250616.dist-info/top_level.txt,sha256=oqs7UPoNSKZEwqsX8B-KAWdQwfAa7i60pbxW_Jk7P3w,5
204
+ tico-0.1.0.dev250616.dist-info/RECORD,,