torch-bessel 0.0.2__cp39-cp39-macosx_11_0_arm64.whl → 0.0.3__cp39-cp39-macosx_11_0_arm64.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.
Binary file
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: torch_bessel
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: PyTorch extension package for Bessel functions with arbitrary real order and complex inputs
5
- Home-page: https://github.com/pytorch/torch-bessel
5
+ Home-page: https://github.com/hchau630/torch-bessel
6
6
  Author: Ho Yin Chau
7
7
  Requires-Python: >= 3.9
8
8
  Description-Content-Type: text/markdown
@@ -20,20 +20,22 @@ Dynamic: summary
20
20
  PyTorch extension package for Bessel functions with arbitrary real order and complex inputs
21
21
 
22
22
  # Install
23
+ Currently only supports Linux (with CUDA 12.4) or MacOS (Apple silicon, cpu only) with python >= 3.9, <= 3.12.
23
24
  ```
24
25
  pip install torch-bessel
25
26
  ```
26
27
 
27
- # Example usage
28
+ # Example
28
29
  ```
29
30
  import torch_bessel
30
31
 
31
- z = torch.randn(10) + 1j
32
+ real, imag = torch.randn(2, 5, device="cuda")
33
+ z = torch.complex(real.abs(), imag) # inputs on the left-half complex plane are set to NaNs.
32
34
  torch_bessel.ops.modified_bessel_k0(z)
33
35
  ```
34
36
 
35
37
  # Implemented functions
36
- - `modified_bessel_k0`: Same as `torch.special.modified_bessel_k0`, but also handles backpropagation and complex inputs with $\mathrm{Im}(z) \geq 0$ on cpu and cuda.
38
+ - `modified_bessel_k0`: Same as `torch.special.modified_bessel_k0`, but also handles backpropagation and complex inputs with $\mathrm{Re}(z) \geq 0$ on cpu and cuda.
37
39
 
38
40
  # WIP
39
41
  - `modified_bessel_kv`: Analogue of `scipy.special.kv`.
@@ -0,0 +1,8 @@
1
+ torch_bessel/_C.cpython-39-darwin.so,sha256=YpOq1FYTo8RZwBbB3WGjhyYirEfRAVwpnyiT9S4lSqc,231368
2
+ torch_bessel/__init__.py,sha256=oohbWz8vxekl7kqDNSWqDH3ORabf9-Tug1KJryKw51A,230
3
+ torch_bessel/ops.py,sha256=Q9BrLxi15MS53xSt_S9dyE3g8_8_GCFYhfAztIor8Fw,2043
4
+ torch_bessel-0.0.3.dist-info/LICENSE,sha256=do0DI6wu4mF3VXnEXXPYZqVEatoRSSamgz9t80wU7_o,1068
5
+ torch_bessel-0.0.3.dist-info/METADATA,sha256=7hH6thd8bu4oaKYfNq5v6V4JkUe6g6_C9Irl618y3-8,1220
6
+ torch_bessel-0.0.3.dist-info/WHEEL,sha256=md3JO_ifs5j508p3TDNMgtQVtnQblpGEt_Wo4W56l8Y,107
7
+ torch_bessel-0.0.3.dist-info/top_level.txt,sha256=cbDIjTj71LuAlVyyYyDt8fOAeLaVeX3Vums5F2FBa-4,13
8
+ torch_bessel-0.0.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- torch_bessel/_C.cpython-39-darwin.so,sha256=2T92Ca_oNMpta42MUj-qbZiQzOJNcQ39EyVUNaPx4rA,231576
2
- torch_bessel/__init__.py,sha256=oohbWz8vxekl7kqDNSWqDH3ORabf9-Tug1KJryKw51A,230
3
- torch_bessel/ops.py,sha256=Q9BrLxi15MS53xSt_S9dyE3g8_8_GCFYhfAztIor8Fw,2043
4
- torch_bessel-0.0.2.dist-info/LICENSE,sha256=do0DI6wu4mF3VXnEXXPYZqVEatoRSSamgz9t80wU7_o,1068
5
- torch_bessel-0.0.2.dist-info/METADATA,sha256=F8Mbw3qz2XuV82NoMc7HWKQ2lKivcx1X9ht2AScvSfo,999
6
- torch_bessel-0.0.2.dist-info/WHEEL,sha256=md3JO_ifs5j508p3TDNMgtQVtnQblpGEt_Wo4W56l8Y,107
7
- torch_bessel-0.0.2.dist-info/top_level.txt,sha256=cbDIjTj71LuAlVyyYyDt8fOAeLaVeX3Vums5F2FBa-4,13
8
- torch_bessel-0.0.2.dist-info/RECORD,,