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 torchinterp 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 torchinterp 1.0.0
File Size Uploaded Provenance
torchinterp-1.0.0.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.2 kB

Release files / torchinterp-1.0.0.tar.gz

Download URL torchinterp-1.0.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ec07812573775494b299b8a7193e882d35e2de0c853ae74d33ca1ba39422abf3
BLAKE2b-256 checksum
How to use checksums
8e9dcc5731b1f61129d92db58368ff15bf305fe69f8ebc7e8b29ac81d5162f86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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 / torchinterp-1.0.0-py3-none-any.whl

Download URL torchinterp-1.0.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
807f9b0a35d90855118fb8f00f0ef469e56044bb82e606a5928d87cf0441f381
BLAKE2b-256 checksum
How to use checksums
ada96e0988016c20b55e216496ca2d28def3d1a1d1491d09e145bef76767a946
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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 torchinterp 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