ai-edge-torch-nightly 0.7.0.dev20251020__py3-none-any.whl → 0.7.0.dev20251021__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/odml_torch/lowerings/_basic.py +11 -4
 - ai_edge_torch/version.py +1 -1
 - {ai_edge_torch_nightly-0.7.0.dev20251020.dist-info → ai_edge_torch_nightly-0.7.0.dev20251021.dist-info}/METADATA +3 -13
 - {ai_edge_torch_nightly-0.7.0.dev20251020.dist-info → ai_edge_torch_nightly-0.7.0.dev20251021.dist-info}/RECORD +7 -7
 - {ai_edge_torch_nightly-0.7.0.dev20251020.dist-info → ai_edge_torch_nightly-0.7.0.dev20251021.dist-info}/WHEEL +1 -1
 - {ai_edge_torch_nightly-0.7.0.dev20251020.dist-info/licenses → ai_edge_torch_nightly-0.7.0.dev20251021.dist-info}/LICENSE +0 -0
 - {ai_edge_torch_nightly-0.7.0.dev20251020.dist-info → ai_edge_torch_nightly-0.7.0.dev20251021.dist-info}/top_level.txt +0 -0
 
| 
         @@ -12,6 +12,7 @@ 
     | 
|
| 
       12 
12 
     | 
    
         
             
            # See the License for the specific language governing permissions and
         
     | 
| 
       13 
13 
     | 
    
         
             
            # limitations under the License.
         
     | 
| 
       14 
14 
     | 
    
         
             
            # ==============================================================================
         
     | 
| 
      
 15 
     | 
    
         
            +
            import logging
         
     | 
| 
       15 
16 
     | 
    
         
             
            import math
         
     | 
| 
       16 
17 
     | 
    
         
             
            import operator
         
     | 
| 
       17 
18 
     | 
    
         
             
            from typing import Optional, Union
         
     | 
| 
         @@ -101,9 +102,12 @@ def _hann_window_impl( 
     | 
|
| 
       101 
102 
     | 
    
         
             
            def _aten_hann_window_default(
         
     | 
| 
       102 
103 
     | 
    
         
             
                lctx: LoweringContext,
         
     | 
| 
       103 
104 
     | 
    
         
             
                size: int,
         
     | 
| 
       104 
     | 
    
         
            -
                 
     | 
| 
       105 
     | 
    
         
            -
                dtype: Optional[torch.dtype] = None,
         
     | 
| 
      
 105 
     | 
    
         
            +
                **kwargs,
         
     | 
| 
       106 
106 
     | 
    
         
             
            ) -> ir.Value:
         
     | 
| 
      
 107 
     | 
    
         
            +
              dtype = kwargs.pop("dtype", None)
         
     | 
| 
      
 108 
     | 
    
         
            +
              layout = kwargs.pop("layout", torch.strided)
         
     | 
| 
      
 109 
     | 
    
         
            +
              if layout != torch.strided:
         
     | 
| 
      
 110 
     | 
    
         
            +
                logging.warning("hann_window only supports torch.strided layout.")
         
     | 
| 
       107 
111 
     | 
    
         
             
              return _hann_window_impl(lctx, size, True, dtype)
         
     | 
| 
       108 
112 
     | 
    
         | 
| 
       109 
113 
     | 
    
         | 
| 
         @@ -114,9 +118,12 @@ def _aten_hann_window_periodic( 
     | 
|
| 
       114 
118 
     | 
    
         
             
                lctx: LoweringContext,
         
     | 
| 
       115 
119 
     | 
    
         
             
                size: int,
         
     | 
| 
       116 
120 
     | 
    
         
             
                periodic: bool,
         
     | 
| 
       117 
     | 
    
         
            -
                 
     | 
| 
       118 
     | 
    
         
            -
                dtype: Optional[torch.dtype] = None,
         
     | 
| 
      
 121 
     | 
    
         
            +
                **kwargs,
         
     | 
| 
       119 
122 
     | 
    
         
             
            ) -> ir.Value:
         
     | 
| 
      
 123 
     | 
    
         
            +
              dtype = kwargs.pop("dtype", None)
         
     | 
| 
      
 124 
     | 
    
         
            +
              layout = kwargs.pop("layout", torch.strided)
         
     | 
| 
      
 125 
     | 
    
         
            +
              if layout != torch.strided:
         
     | 
| 
      
 126 
     | 
    
         
            +
                logging.warning("hann_window only supports torch.strided layout.")
         
     | 
| 
       120 
127 
     | 
    
         
             
              return _hann_window_impl(lctx, size, periodic, dtype)
         
     | 
| 
       121 
128 
     | 
    
         | 
| 
       122 
129 
     | 
    
         | 
    
        ai_edge_torch/version.py
    CHANGED
    
    
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            Metadata-Version: 2. 
     | 
| 
      
 1 
     | 
    
         
            +
            Metadata-Version: 2.1
         
     | 
| 
       2 
2 
     | 
    
         
             
            Name: ai-edge-torch-nightly
         
     | 
| 
       3 
     | 
    
         
            -
            Version: 0.7.0. 
     | 
| 
      
 3 
     | 
    
         
            +
            Version: 0.7.0.dev20251021
         
     | 
| 
       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
         
     | 
| 
         @@ -37,17 +37,7 @@ Requires-Dist: ai-edge-quantizer-nightly 
     | 
|
| 
       37 
37 
     | 
    
         
             
            Requires-Dist: jax
         
     | 
| 
       38 
38 
     | 
    
         
             
            Requires-Dist: torch-xla2[odml]>=0.0.1.dev20241201
         
     | 
| 
       39 
39 
     | 
    
         
             
            Provides-Extra: torch-xla
         
     | 
| 
       40 
     | 
    
         
            -
            Requires-Dist:  
     | 
| 
       41 
     | 
    
         
            -
            Dynamic: classifier
         
     | 
| 
       42 
     | 
    
         
            -
            Dynamic: description
         
     | 
| 
       43 
     | 
    
         
            -
            Dynamic: description-content-type
         
     | 
| 
       44 
     | 
    
         
            -
            Dynamic: home-page
         
     | 
| 
       45 
     | 
    
         
            -
            Dynamic: keywords
         
     | 
| 
       46 
     | 
    
         
            -
            Dynamic: license-file
         
     | 
| 
       47 
     | 
    
         
            -
            Dynamic: provides-extra
         
     | 
| 
       48 
     | 
    
         
            -
            Dynamic: requires-dist
         
     | 
| 
       49 
     | 
    
         
            -
            Dynamic: requires-python
         
     | 
| 
       50 
     | 
    
         
            -
            Dynamic: summary
         
     | 
| 
      
 40 
     | 
    
         
            +
            Requires-Dist: torch-xla>=2.4.0; extra == "torch-xla"
         
     | 
| 
       51 
41 
     | 
    
         | 
| 
       52 
42 
     | 
    
         
             
            Library that supports converting PyTorch models into a .tflite format, which can
         
     | 
| 
       53 
43 
     | 
    
         
             
            then be run with TensorFlow Lite and MediaPipe.  This enables applications for
         
     | 
| 
         @@ -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=OqJtg7_I5JrjrCcK_c026Q_w0JSHTPq1q3hHLlxAzt8,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
         
     | 
| 
         @@ -250,7 +250,7 @@ ai_edge_torch/odml_torch/jax_bridge/__init__.py,sha256=e9Oa4J3An9FYr3zM0OzjzyNNi 
     | 
|
| 
       250 
250 
     | 
    
         
             
            ai_edge_torch/odml_torch/jax_bridge/_wrap.py,sha256=LqwZ1vCJTSOzgzvH8LUAN-sAkF-l_pGj1AMEIzAqHCA,6638
         
     | 
| 
       251 
251 
     | 
    
         
             
            ai_edge_torch/odml_torch/jax_bridge/utils.py,sha256=T8isGc896VrHZ6c_L5pYmLpolQ7ibcOlgWfPuVFPzIg,2264
         
     | 
| 
       252 
252 
     | 
    
         
             
            ai_edge_torch/odml_torch/lowerings/__init__.py,sha256=uJ-niilt1c-D6QJzLwgvCUf62le_JsxQTlqj_iP_Ps0,1009
         
     | 
| 
       253 
     | 
    
         
            -
            ai_edge_torch/odml_torch/lowerings/_basic.py,sha256 
     | 
| 
      
 253 
     | 
    
         
            +
            ai_edge_torch/odml_torch/lowerings/_basic.py,sha256=kUbicoJcYZOgYRhydXYIsLyB2lW_Y-39skvjvrqhevo,15031
         
     | 
| 
       254 
254 
     | 
    
         
             
            ai_edge_torch/odml_torch/lowerings/_batch_norm.py,sha256=PaLI0BB6pdBW1VyfW8VTOT_Be-ZcqYdNOsyfzKfq8Cg,2064
         
     | 
| 
       255 
255 
     | 
    
         
             
            ai_edge_torch/odml_torch/lowerings/_convolution.py,sha256=Q0aDzyUcZMoSzSbOU-r3LJMgPe6fble0QwdYVIOHHHk,6887
         
     | 
| 
       256 
256 
     | 
    
         
             
            ai_edge_torch/odml_torch/lowerings/_decomp_registry.py,sha256=ybOdoFE5HIJTkyiYcc73zpyUyUpioVnAca6k0wyJPs4,2572
         
     | 
| 
         @@ -270,8 +270,8 @@ ai_edge_torch/testing/__init__.py,sha256=_yGgvnBZWb7T3IN3mc4x1sS4vM96HZwM8pwIcPG 
     | 
|
| 
       270 
270 
     | 
    
         
             
            ai_edge_torch/testing/export.py,sha256=k5mGDGzwc23Z4zaIVDs8CNh-oOt64gsf9MS9NjhbPy4,3293
         
     | 
| 
       271 
271 
     | 
    
         
             
            ai_edge_torch/testing/model_coverage/__init__.py,sha256=5P8J6Zk5YYtDvTBucFvB9NGSRI7Gw_24WnrbhXgycEE,765
         
     | 
| 
       272 
272 
     | 
    
         
             
            ai_edge_torch/testing/model_coverage/model_coverage.py,sha256=UPB448aMDUyC0HNYVqio2rcJPnDN0tBQMP08J6vPYew,4718
         
     | 
| 
       273 
     | 
    
         
            -
            ai_edge_torch_nightly-0.7.0. 
     | 
| 
       274 
     | 
    
         
            -
            ai_edge_torch_nightly-0.7.0. 
     | 
| 
       275 
     | 
    
         
            -
            ai_edge_torch_nightly-0.7.0. 
     | 
| 
       276 
     | 
    
         
            -
            ai_edge_torch_nightly-0.7.0. 
     | 
| 
       277 
     | 
    
         
            -
            ai_edge_torch_nightly-0.7.0. 
     | 
| 
      
 273 
     | 
    
         
            +
            ai_edge_torch_nightly-0.7.0.dev20251021.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
         
     | 
| 
      
 274 
     | 
    
         
            +
            ai_edge_torch_nightly-0.7.0.dev20251021.dist-info/METADATA,sha256=wB295znY-1RX_QXKMB8e-ujDBHQg_u39kqx8Pk8qleg,2074
         
     | 
| 
      
 275 
     | 
    
         
            +
            ai_edge_torch_nightly-0.7.0.dev20251021.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
         
     | 
| 
      
 276 
     | 
    
         
            +
            ai_edge_torch_nightly-0.7.0.dev20251021.dist-info/top_level.txt,sha256=5KXRaF2hwkApYxf7Y8y_tVb9aulGTlbOoNdbx1aKRkE,14
         
     | 
| 
      
 277 
     | 
    
         
            +
            ai_edge_torch_nightly-0.7.0.dev20251021.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     |