Skip to main content

torchinterp

Adds 1-d interpolation of arbitrarily-sized data to pytorch

Based on https://github.com/pytorch/pytorch/issues/50334#issuecomment-2304751532, but with a callable interpolator object for repeated use and efficient precalculation

Installation

pip install torchinterp

Usage

import torch
from torchinterp import TorchInterpolator


xp = torch.tensor([0.0,1.0])
fp = torch.tensor([1.0,2.0])

interpObj = TorchInterpolator(xp,fp,extrapolate='linear')

interpObj(torch.tensor([0.5,0.7]))

Metadata

Release files for torchinterpolant 1.0.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 torchinterpolant 1.0.0
File Size Uploaded Provenance Actions
torchinterpolant-1.0.0.tar.gz 2.7 kB Without provenance Details for torchinterpolant-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.4 kB

Release files / torchinterpolant-1.0.0.tar.gz

Download URL torchinterpolant-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eaa248499b49b421a6ddaf9edb8ef5b13bf9689c6d466d5993045177f2185d0c
BLAKE2b-256 checksum
How to use checksums
643ad9aa48915ff1abc7b32538f8a84d1a457ec89fd65ee9d17c6cb2d09041d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / torchinterpolant-1.0.0-py3-none-any.whl

Download URL torchinterpolant-1.0.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68b4def32c208166968da806808b10af6bdeb38645e2188ddc93299bf2b5b02c
BLAKE2b-256 checksum
How to use checksums
69e0da49f1419f4cde622e9e47d0e6a575c06cf6554da4f308244e788b4342b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for torchinterpolant 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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