Skip to main content

TorchWindow

TorchWindow is a Python library that enables viewing of PyTorch Cuda Tensors on screen directly from GPU memory (No copying back and forth between GPU and CPU) via OpenGL-Cuda interop.

Install

pip install torchwindow

Use

To create a window

from torchwindow import Window
window = Window(640, 480, name="Torch Window")

To display an image tensor in the window

window.draw(image)

image must be a tensor with the following properties:

  • 3 dimensions, specifically (rows, columns, channels) in that order.
  • channels dimension must be of size 4 (r, g, b, a)

Example

To check if torchwindow is properly installed try running

python3 -m torchwindow.example

You should see this window appear for 5 seconds before closing Example

Metadata

Release files for torchwindow 1.1.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 torchwindow 1.1.0
File Size Uploaded Provenance
torchwindow-1.1.0.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for torchwindow 1.1.0
File Interpreter ABI Platform
torchwindow-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / torchwindow-1.1.0.tar.gz

Download URL torchwindow-1.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4f19f4299a1241cc94cb30c3dec7773cec29c8e54f2538aee22ffc897630f5fc
BLAKE2b-256 checksum
How to use checksums
7562b90ae15b25b48d271cd0b48053cd53994733fca1ba3c079a380a00cd6ec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.8.15+ Linux/5.15.0-52-generic

Release files / torchwindow-1.1.0-py3-none-any.whl

Download URL torchwindow-1.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c8554a2a9ffa0c6b2601d8dfb3c04b3deb0269abaaba0c3036ab1c32a541d5b
BLAKE2b-256 checksum
How to use checksums
8ccb85329967281307852ccd3fe65d9fab3f4f828d956a632dde6c17f747943a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.8.15+ Linux/5.15.0-52-generic

Security for torchwindow 1.1.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.

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