torch-rb 0.21.0 → 0.22.1
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.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +9 -0
 - data/README.md +2 -3
 - data/codegen/generate_functions.rb +5 -1
 - data/codegen/native_functions.yaml +239 -152
 - data/ext/torch/ext.cpp +4 -0
 - data/ext/torch/ivalue.cpp +1 -1
 - data/ext/torch/templates.h +36 -1
 - data/ext/torch/tensor.cpp +3 -3
 - data/ext/torch/utils.h +4 -2
 - data/lib/torch/version.rb +1 -1
 - data/lib/torch.rb +0 -1
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d15801cc8463969ebf374f668980c55da64203b973d673895a7315ae150387fd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 1d4d3bd337f0b8645d642f92b74286996381dc1e3dad1f0d652f5e900cf60bcd
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 52572a441989fcdb66840785354d6f5e5d9dfe431ead839ff6f38c9325bc3ec2c02c035b06adb6c3aeb2fa1c76db365ccf1d5f236f47bf97073a799a117ef7fd
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f156700996b6517b81d268477551c197b5119f910e6fe81dab92fea27d633bed82476fee679fe9c32231ef252b0fa19eb311ab670480816324d7074fcf3d8fef
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -22,7 +22,7 @@ As well as: 
     | 
|
| 
       22 
22 
     | 
    
         
             
            First, [download LibTorch](https://pytorch.org/get-started/locally/). For Mac arm64, use:
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            ```sh
         
     | 
| 
       25 
     | 
    
         
            -
            curl -L https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2. 
     | 
| 
      
 25 
     | 
    
         
            +
            curl -L https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.9.0.zip > libtorch.zip
         
     | 
| 
       26 
26 
     | 
    
         
             
            unzip -q libtorch.zip
         
     | 
| 
       27 
27 
     | 
    
         
             
            ```
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
         @@ -418,12 +418,11 @@ Here’s the list of compatible versions. 
     | 
|
| 
       418 
418 
     | 
    
         | 
| 
       419 
419 
     | 
    
         
             
            Torch.rb | LibTorch
         
     | 
| 
       420 
420 
     | 
    
         
             
            --- | ---
         
     | 
| 
      
 421 
     | 
    
         
            +
            0.22.x | 2.9.x
         
     | 
| 
       421 
422 
     | 
    
         
             
            0.21.x | 2.8.x
         
     | 
| 
       422 
423 
     | 
    
         
             
            0.20.x | 2.7.x
         
     | 
| 
       423 
424 
     | 
    
         
             
            0.19.x | 2.6.x
         
     | 
| 
       424 
425 
     | 
    
         
             
            0.18.x | 2.5.x
         
     | 
| 
       425 
     | 
    
         
            -
            0.17.x | 2.4.x
         
     | 
| 
       426 
     | 
    
         
            -
            0.16.x | 2.3.x
         
     | 
| 
       427 
426 
     | 
    
         | 
| 
       428 
427 
     | 
    
         
             
            ## Performance
         
     | 
| 
       429 
428 
     | 
    
         | 
| 
         @@ -55,7 +55,11 @@ def skip_functions(functions) 
     | 
|
| 
       55 
55 
     | 
    
         
             
                f.base_name == "sym_storage_offset" ||
         
     | 
| 
       56 
56 
     | 
    
         
             
                f.base_name == "sym_stride" ||
         
     | 
| 
       57 
57 
     | 
    
         
             
                # TODO fix LibTorch 2.6 changes
         
     | 
| 
       58 
     | 
    
         
            -
                f.base_name == "rrelu_with_noise"
         
     | 
| 
      
 58 
     | 
    
         
            +
                f.base_name == "rrelu_with_noise" ||
         
     | 
| 
      
 59 
     | 
    
         
            +
                # TODO fix LibTorch 2.9 changes
         
     | 
| 
      
 60 
     | 
    
         
            +
                f.base_name == "sym_is_contiguous" ||
         
     | 
| 
      
 61 
     | 
    
         
            +
                f.base_name == "fbgemm_linear_fp16_weight" ||
         
     | 
| 
      
 62 
     | 
    
         
            +
                f.base_name == "fbgemm_linear_fp16_weight_fp32_activation"
         
     | 
| 
       59 
63 
     | 
    
         
             
              end
         
     | 
| 
       60 
64 
     | 
    
         
             
            end
         
     | 
| 
       61 
65 
     | 
    
         |