Skip to main content

slangpy-torch

Minimal PyTorch native extension providing fast (~28ns) tensor metadata access from native code without Python API overhead (~350ns).

Prerequisites

  • Python 3.9+
  • PyTorch 2.0+ installed
  • C++ compiler

Windows

Install Visual Studio 2019 or 2022 with the "Desktop development with C++" workload.

Linux

# Ubuntu/Debian
sudo apt-get install build-essential

Install

This extension must be installed with --no-build-isolation to ensure ABI compatibility with your installed PyTorch version:

pip install slangpy-torch --no-build-isolation

Verify Installation

import torch # Before slangpy_torch
import slangpy_torch
print(slangpy_torch.get_api_ptr())  # Should print a non-zero integer

Metadata

Release files for slangpy-torch 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slangpy-torch 0.7.0
File Size Uploaded Provenance Actions
slangpy_torch-0.7.0.tar.gz 9.8 kB Without provenance Details for slangpy_torch-0.7.0.tar.gz

Release files / slangpy_torch-0.7.0.tar.gz

Download URL slangpy_torch-0.7.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c14c9cc3074349ad5f019d8b8a06e14031662a60d493448a86563db3e888ae45
BLAKE2b-256 checksum
How to use checksums
273e20e0edb6fd6fa95af0e966f9408226e0dae8f90a07ceda043dd4aa2eb3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for slangpy-torch 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page