{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Provides a Python class wrapping real and imaginary PyTorch tensors to simulate complex tensor operations until native PyTorch support arrives.","skillfed_tags":["complex-numbers","deprecated-workaround"],"use_cases":["Prototyping signal processing or Fourier-domain neural networks when native PyTorch complex support is unavailable.","Implementing complex-valued layers in deep learning models that require complex arithmetic.","Performing batch matrix operations on complex-valued data (matmul, inverse, einsum).","Training models with complex-valued activations or loss functions using autograd."],"what_it_does":"torch_complex is a thin wrapper that simulates PyTorch's missing ComplexTensor type by pairing real and imaginary torch.Tensor objects. It implements basic arithmetic (addition, multiplication, division, exponentiation), matrix operations (batch matmul, batch inverse, conjugate), and functional operations (cat, stack, einsum) on complex values. The package also supports GPU operations (cuda/cpu) and autograd backpropagation.\n\nThe author explicitly describes this as a temporary workaround for PyTorch's lack of native complex tensor support at the Python level, intending to deprecate it once PyTorch adds the feature. All operations are implemented by composing real-valued PyTorch operations at the Python level, so performance is not optimized. It requires Python 3.6+ and PyTorch 1.0+.","worth_installing":"No. The package is dormant and explicitly positioned as a temporary workaround. PyTorch has since added native ComplexTensor support, making this wrapper unnecessary for modern projects. Install only if you are locked into an old PyTorch version that lacks complex tensor support and cannot upgrade."},"id":"torch-complex","links":{"html":"https://skillfed.io/packages/torch-complex","md":"https://skillfed.io/packages/torch-complex.md","pypi":"https://pypi.org/project/torch-complex/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-06-28","license_spdx":null,"license_treatment":"permissive","name":"torch-complex","python_support":"unspecified","summary":"A fugacious python class for PyTorch-ComplexTensor"},"popularity":{"monthly_downloads":413667,"position":6840,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.4"}
