ai-edge-torch-nightly 0.7.0.dev20250911__py3-none-any.whl → 0.7.0.dev20250912__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.
@@ -636,6 +636,50 @@ class TestConvert(googletest.TestCase):
636
636
  self.fail(f"Conversion failed with 6d inputs: {err}")
637
637
  # pylint: enable=broad-except
638
638
 
639
+ @googletest.skipIf(
640
+ ai_edge_torch.config.in_oss,
641
+ reason="wait until dependencies are released to tf-nightly",
642
+ )
643
+ def test_convert_model_with_slice_6d_inputs(self):
644
+ """Test converting a simple model with slice and 6d inputs."""
645
+
646
+ class SampleModel(nn.Module):
647
+
648
+ def forward(self, x: torch.Tensor):
649
+ return x[0:1, 0:2, 0:3, 0:4, 0:5, 0:1]
650
+
651
+ model = SampleModel().eval()
652
+ args = (torch.randn((1, 2, 3, 4, 5, 6)),)
653
+
654
+ try:
655
+ # Expect this to fix the error during conversion
656
+ ai_edge_torch.convert(model, args)
657
+ except Exception as err:
658
+ self.fail(f"Conversion failed with 6d inputs for slice: {err}")
659
+ # pylint: enable=broad-except
660
+
661
+ @googletest.skipIf(
662
+ ai_edge_torch.config.in_oss,
663
+ reason="wait until dependencies are released to tf-nightly",
664
+ )
665
+ def test_convert_model_with_strided_slice_6d_inputs(self):
666
+ """Test converting a simple model with strided_slice and 6d inputs."""
667
+
668
+ class SampleModel(nn.Module):
669
+
670
+ def forward(self, x: torch.Tensor):
671
+ return x[:, :, :, :, :, ::2]
672
+
673
+ model = SampleModel().eval()
674
+ args = (torch.randn((1, 2, 3, 4, 5, 6)),)
675
+
676
+ try:
677
+ # Expect this to fix the error during conversion
678
+ ai_edge_torch.convert(model, args)
679
+ except Exception as err:
680
+ self.fail(f"Conversion failed with 6d inputs for strided_slice: {err}")
681
+ # pylint: enable=broad-except
682
+
639
683
  def test_compile_model(self):
640
684
  """Tests AOT compilation of a simple Add module."""
641
685
 
ai_edge_torch/version.py CHANGED
@@ -15,4 +15,4 @@
15
15
 
16
16
  # The next version of ai-edge-torch.
17
17
  # The minor version code should be bumped after every release.
18
- __version__ = "0.7.0.dev20250911"
18
+ __version__ = "0.7.0.dev20250912"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ai-edge-torch-nightly
3
- Version: 0.7.0.dev20250911
3
+ Version: 0.7.0.dev20250912
4
4
  Summary: Supporting PyTorch models with the Google AI Edge TFLite runtime.
5
5
  Home-page: https://github.com/google-ai-edge/ai-edge-torch
6
6
  Keywords: On-Device ML,AI,Google,TFLite,PyTorch,LLMs,GenAI
@@ -2,7 +2,7 @@ ai_edge_torch/__init__.py,sha256=lemyLCNoGYRnJsmDuGZu7qOqLbLqG6CGDFtu3ue1syU,129
2
2
  ai_edge_torch/_config.py,sha256=AiqhbcheF7j_ozIGDLC89k1we95aVgFDa-tR6h7UI0s,2529
3
3
  ai_edge_torch/conftest.py,sha256=r0GTrhMRhlmOGrrkvumHN8hkmyug6WvF60vWq8wRIBI,758
4
4
  ai_edge_torch/model.py,sha256=A7loFu8jE9CsXsfMmHYZ-KDFJiaD8Kkqwm_9d3IVzk0,5638
5
- ai_edge_torch/version.py,sha256=ad9ZkVC0B8CG30qp_HL1btX4L7zZ8wC0T5_b6bbtVOQ,806
5
+ ai_edge_torch/version.py,sha256=DHypu0sPpwondGn5ZEll2UHAaf_4N5r5pHQU9FA9Y7s,806
6
6
  ai_edge_torch/_convert/__init__.py,sha256=hHLluseD2R0Hh4W6XZRIXY_dRQeYudjsrKGf6LZz65g,671
7
7
  ai_edge_torch/_convert/conversion.py,sha256=iQk3R-pLq4c1nfLqPB4xTRj78gghxPGzJCJtILLdg5o,6123
8
8
  ai_edge_torch/_convert/conversion_utils.py,sha256=Sr8qXVcTwc-ZnZmK7yxVrIOOp1S_vNrwzC0zUvLTI2o,2160
@@ -27,7 +27,7 @@ ai_edge_torch/_convert/fx_passes/optimize_layout_transposes_pass/layout_partitio
27
27
  ai_edge_torch/_convert/fx_passes/optimize_layout_transposes_pass/layout_partitioners/greedy.py,sha256=L_x8BrF7UDah-SYl-pG11I6CIckdU9kBTUHcmwW4cts,2420
28
28
  ai_edge_torch/_convert/fx_passes/optimize_layout_transposes_pass/layout_partitioners/min_cut.py,sha256=oXbr9G5Jc21xd1dr2CDrp774I4crs0_kkN490K5fNn0,7312
29
29
  ai_edge_torch/_convert/test/__init__.py,sha256=hHLluseD2R0Hh4W6XZRIXY_dRQeYudjsrKGf6LZz65g,671
30
- ai_edge_torch/_convert/test/test_convert.py,sha256=m0j4pLcVYEhLsO47z8K9wnE-7fjAmhkZfjtXHXBLbGo,20591
30
+ ai_edge_torch/_convert/test/test_convert.py,sha256=rZZg04rY3Q0w_qv8x4vwBkedwRd0MwgsacSX2-AN688,21991
31
31
  ai_edge_torch/_convert/test/test_convert_composites.py,sha256=BCIODgxMI_3MxMLfNWYMGjcz-al-J3z5eDHCiZJXNwY,7992
32
32
  ai_edge_torch/_convert/test/test_convert_multisig.py,sha256=6_C2R9--KyNR7_oezZIAfyTSR97tOeEWy4XGcbSxBDE,5778
33
33
  ai_edge_torch/_convert/test/test_to_channel_last_io.py,sha256=1o-gUiwzIuO67FNAJ8DeyKv8fVUeZVNNNwofNVDjYeU,3024
@@ -269,8 +269,8 @@ ai_edge_torch/testing/__init__.py,sha256=_yGgvnBZWb7T3IN3mc4x1sS4vM96HZwM8pwIcPG
269
269
  ai_edge_torch/testing/export.py,sha256=k5mGDGzwc23Z4zaIVDs8CNh-oOt64gsf9MS9NjhbPy4,3293
270
270
  ai_edge_torch/testing/model_coverage/__init__.py,sha256=5P8J6Zk5YYtDvTBucFvB9NGSRI7Gw_24WnrbhXgycEE,765
271
271
  ai_edge_torch/testing/model_coverage/model_coverage.py,sha256=UPB448aMDUyC0HNYVqio2rcJPnDN0tBQMP08J6vPYew,4718
272
- ai_edge_torch_nightly-0.7.0.dev20250911.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
273
- ai_edge_torch_nightly-0.7.0.dev20250911.dist-info/METADATA,sha256=YwLdah0CL4_mA0ZKe9npxWkCI5S6MFcokhGces5SCvQ,2074
274
- ai_edge_torch_nightly-0.7.0.dev20250911.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
275
- ai_edge_torch_nightly-0.7.0.dev20250911.dist-info/top_level.txt,sha256=5KXRaF2hwkApYxf7Y8y_tVb9aulGTlbOoNdbx1aKRkE,14
276
- ai_edge_torch_nightly-0.7.0.dev20250911.dist-info/RECORD,,
272
+ ai_edge_torch_nightly-0.7.0.dev20250912.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
273
+ ai_edge_torch_nightly-0.7.0.dev20250912.dist-info/METADATA,sha256=ni2ExO5_iIpKdawP63apxP61T6fmph4TheU7x3WNCfI,2074
274
+ ai_edge_torch_nightly-0.7.0.dev20250912.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
275
+ ai_edge_torch_nightly-0.7.0.dev20250912.dist-info/top_level.txt,sha256=5KXRaF2hwkApYxf7Y8y_tVb9aulGTlbOoNdbx1aKRkE,14
276
+ ai_edge_torch_nightly-0.7.0.dev20250912.dist-info/RECORD,,