ai-edge-torch-nightly 0.6.0.dev20250908__py3-none-any.whl → 0.7.0.dev20250910__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.
- ai_edge_torch/_convert/test/test_convert.py +21 -0
- ai_edge_torch/version.py +1 -1
- {ai_edge_torch_nightly-0.6.0.dev20250908.dist-info → ai_edge_torch_nightly-0.7.0.dev20250910.dist-info}/METADATA +1 -1
- {ai_edge_torch_nightly-0.6.0.dev20250908.dist-info → ai_edge_torch_nightly-0.7.0.dev20250910.dist-info}/RECORD +7 -7
- {ai_edge_torch_nightly-0.6.0.dev20250908.dist-info → ai_edge_torch_nightly-0.7.0.dev20250910.dist-info}/LICENSE +0 -0
- {ai_edge_torch_nightly-0.6.0.dev20250908.dist-info → ai_edge_torch_nightly-0.7.0.dev20250910.dist-info}/WHEEL +0 -0
- {ai_edge_torch_nightly-0.6.0.dev20250908.dist-info → ai_edge_torch_nightly-0.7.0.dev20250910.dist-info}/top_level.txt +0 -0
@@ -615,6 +615,27 @@ class TestConvert(googletest.TestCase):
|
|
615
615
|
self.fail(f"Conversion failed with int64 inputs: {err}")
|
616
616
|
# pylint: enable=broad-except
|
617
617
|
|
618
|
+
def test_convert_model_with_torch_div_operation_6d_inputs(self):
|
619
|
+
"""Test converting a simple model with torch.div operation and 6d inputs."""
|
620
|
+
|
621
|
+
class SampleModel(nn.Module):
|
622
|
+
|
623
|
+
def forward(self, x: torch.Tensor, y: torch.Tensor):
|
624
|
+
return x / y
|
625
|
+
|
626
|
+
model = SampleModel().eval()
|
627
|
+
args = (
|
628
|
+
torch.randn((1, 2, 3, 4, 5, 6)),
|
629
|
+
torch.randn((1, 1, 1, 1, 1, 1)),
|
630
|
+
)
|
631
|
+
|
632
|
+
try:
|
633
|
+
# Expect this to fix the error during conversion
|
634
|
+
ai_edge_torch.convert(model, args)
|
635
|
+
except Exception as err:
|
636
|
+
self.fail(f"Conversion failed with 6d inputs: {err}")
|
637
|
+
# pylint: enable=broad-except
|
638
|
+
|
618
639
|
def test_compile_model(self):
|
619
640
|
"""Tests AOT compilation of a simple Add module."""
|
620
641
|
|
ai_edge_torch/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ai-edge-torch-nightly
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.7.0.dev20250910
|
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=
|
5
|
+
ai_edge_torch/version.py,sha256=_lua19-rTJnz_IFhSUygA_I5Vi77n3ZcLgcP1_TlebY,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=
|
30
|
+
ai_edge_torch/_convert/test/test_convert.py,sha256=m0j4pLcVYEhLsO47z8K9wnE-7fjAmhkZfjtXHXBLbGo,20591
|
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.
|
273
|
-
ai_edge_torch_nightly-0.
|
274
|
-
ai_edge_torch_nightly-0.
|
275
|
-
ai_edge_torch_nightly-0.
|
276
|
-
ai_edge_torch_nightly-0.
|
272
|
+
ai_edge_torch_nightly-0.7.0.dev20250910.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
273
|
+
ai_edge_torch_nightly-0.7.0.dev20250910.dist-info/METADATA,sha256=MsImVkJY8dog-5mEpqFghpdANbuib9JRKvFSAJzxxnI,2074
|
274
|
+
ai_edge_torch_nightly-0.7.0.dev20250910.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
275
|
+
ai_edge_torch_nightly-0.7.0.dev20250910.dist-info/top_level.txt,sha256=5KXRaF2hwkApYxf7Y8y_tVb9aulGTlbOoNdbx1aKRkE,14
|
276
|
+
ai_edge_torch_nightly-0.7.0.dev20250910.dist-info/RECORD,,
|
File without changes
|
File without changes
|