tico 0.1.0.dev250910__py3-none-any.whl → 0.1.0.dev250911__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
@@ -29,7 +29,7 @@ __all__ = [
29
29
  ]
30
30
 
31
31
  # THIS LINE IS AUTOMATICALLY GENERATED BY setup.py
32
- __version__ = "0.1.0.dev250910"
32
+ __version__ = "0.1.0.dev250911"
33
33
 
34
34
  MINIMUM_SUPPORTED_VERSION = "2.5.0"
35
35
  SECURE_TORCH_VERSION = "2.6.0"
@@ -31,9 +31,11 @@ def CircleResizeNearestNeighbor():
31
31
  W_scale_factor = size[2] / W
32
32
  if H_scale_factor != W_scale_factor:
33
33
  raise RuntimeError("Scale factor of H and W should be same.")
34
- return torch.nn.functional.interpolate(
35
- input_, scale_factor=H_scale_factor, mode="nearest"
34
+ permuted = torch.permute(input_, [0, 3, 1, 2])
35
+ resized = torch.nn.functional.interpolate(
36
+ permuted, scale_factor=H_scale_factor, mode="nearest"
36
37
  )
38
+ return torch.permute(resized, [0, 2, 3, 1])
37
39
 
38
40
  @register_fake("circle_custom::resize_nearest_neighbor")
39
41
  def _(input_: torch.Tensor, size: List[int]):
@@ -631,7 +633,7 @@ def CircleInstanceNorm():
631
633
  bias: Optional[torch.Tensor] = None,
632
634
  running_mean: Optional[torch.Tensor] = None,
633
635
  running_var: Optional[torch.Tensor] = None,
634
- use_input_stats: bool = False,
636
+ use_input_stats: bool = True,
635
637
  momentum: float = 0.1,
636
638
  eps: float = 1e-05,
637
639
  cudnn_enabled: bool = False,
@@ -639,7 +641,7 @@ def CircleInstanceNorm():
639
641
  NHWC_to_NCHW = [0, 3, 1, 2]
640
642
  NCHW_input = torch.ops.aten.permute.default(input_, NHWC_to_NCHW)
641
643
 
642
- args = [NCHW_input, weight, bias, None, None, False, momentum, eps, False]
644
+ args = [NCHW_input, weight, bias, None, None, True, momentum, eps, False]
643
645
  NCHW_output = torch.ops.aten.instance_norm.default(*args)
644
646
  NCHW_to_NHWC = [0, 2, 3, 1]
645
647
  NHWC_output = torch.ops.aten.permute.default(NCHW_output, NCHW_to_NHWC)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tico
3
- Version: 0.1.0.dev250910
3
+ Version: 0.1.0.dev250911
4
4
  Summary: Convert exported Torch module to circle
5
5
  Home-page: UNKNOWN
6
6
  License: UNKNOWN
@@ -1,4 +1,4 @@
1
- tico/__init__.py,sha256=eBhicYU7uvGKY-jtosltTu-YM_XO_4uLajrDI3Qn1ow,1883
1
+ tico/__init__.py,sha256=AFm5dss2XoBxl2mMxRFDadqde3-e57kBbQuWfN4B82E,1883
2
2
  tico/pt2_to_circle.py,sha256=gu3MD4Iqc0zMZcCZ2IT8oGbyj21CTSbT3Rgd9s2B_9A,2767
3
3
  tico/config/__init__.py,sha256=xZzCXjZ84qE-CsBi-dfaL05bqpQ3stKKfTXhnrJRyVs,142
4
4
  tico/config/base.py,sha256=q5xMqGxTUZs4mFqt5c7i_y9U00fYgdMGl9nUqIVMlCo,1248
@@ -240,7 +240,7 @@ tico/utils/padding.py,sha256=qKke-dJeeLHiRaePjDS66txrGyiYuipLVQeqLYad8uk,3349
240
240
  tico/utils/passes.py,sha256=kGmDe__5cPaO6i5EDAoXSVe6yXEoX9hAny4ROb3ZEmQ,2409
241
241
  tico/utils/pytree_utils.py,sha256=jrk3N6X6LiUnBCX_gM1K9nywbVAJBVnszlTAgeIeDUc,5219
242
242
  tico/utils/record_input.py,sha256=QN-8D71G_WAX3QQQ5CIwbEfFJZTQ3CvL4wCMiVddua4,3894
243
- tico/utils/register_custom_op.py,sha256=dPemLyjrf4xMYCUlhhZeUhixL8Eat3Ywlv6K5kTqG8Y,28108
243
+ tico/utils/register_custom_op.py,sha256=895SKZeXQzolK-mPG38cQC37Be76xUV_Ujw1k1ts9_w,28218
244
244
  tico/utils/serialize.py,sha256=mEuusEzi82WFsz3AkowgWwxSLeo50JDxyOj6yYDQhEI,1914
245
245
  tico/utils/signature.py,sha256=R2GV0alRpXEbZISqPKyxCUWbgDcsrQ2ovbVG3737IzA,9595
246
246
  tico/utils/torch_compat.py,sha256=oc6PztVsXdHcQ3iaVR90wLLxrGaj6zFHWZ8K9rRS6q8,1795
@@ -251,9 +251,9 @@ tico/utils/mx/__init__.py,sha256=IO6FP_xYbGy0dW0HL26GXD3ouxARaxCK7bz9dn4blPQ,26
251
251
  tico/utils/mx/elemwise_ops.py,sha256=V6glyAHsVR1joqpsgnNytatCD_ew92xNWZ19UFDoMTA,10281
252
252
  tico/utils/mx/formats.py,sha256=uzNWyu-1onUlwQfX5cZ6fZSUfHMRqorper7_T1k3jfk,3404
253
253
  tico/utils/mx/mx_ops.py,sha256=RcfUTYVi-wilGB2sC35OeARdwDqnixv7dG5iyZ-fQT8,8555
254
- tico-0.1.0.dev250910.dist-info/LICENSE,sha256=kp4JLII7bzRhPb0CPD5XTDZMh22BQ7h3k3B7t8TiSbw,12644
255
- tico-0.1.0.dev250910.dist-info/METADATA,sha256=N9SJ_U0Q1K0F1TYTOANZjd26WXZCigDaeWFihGfsYn0,8450
256
- tico-0.1.0.dev250910.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
257
- tico-0.1.0.dev250910.dist-info/entry_points.txt,sha256=kBKYSS_IYrSXmUYevmmepqIVPScq5vF8ulQRu3I_Zf0,59
258
- tico-0.1.0.dev250910.dist-info/top_level.txt,sha256=oqs7UPoNSKZEwqsX8B-KAWdQwfAa7i60pbxW_Jk7P3w,5
259
- tico-0.1.0.dev250910.dist-info/RECORD,,
254
+ tico-0.1.0.dev250911.dist-info/LICENSE,sha256=kp4JLII7bzRhPb0CPD5XTDZMh22BQ7h3k3B7t8TiSbw,12644
255
+ tico-0.1.0.dev250911.dist-info/METADATA,sha256=xwLIBaymr4huU56zVBjWp4SD870bk3Gb9Npss9zH8zk,8450
256
+ tico-0.1.0.dev250911.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
257
+ tico-0.1.0.dev250911.dist-info/entry_points.txt,sha256=kBKYSS_IYrSXmUYevmmepqIVPScq5vF8ulQRu3I_Zf0,59
258
+ tico-0.1.0.dev250911.dist-info/top_level.txt,sha256=oqs7UPoNSKZEwqsX8B-KAWdQwfAa7i60pbxW_Jk7P3w,5
259
+ tico-0.1.0.dev250911.dist-info/RECORD,,