Streaming convolutions for PyTorch
Project description
Torch-Streamer
This package implements a framework for streaming 1D convolutions in PyTorch without padding or pseudo-streaming/cross-fading.
Status
Usage
Install with pip
pip install torch-streamer
Documentation
Docs are available at torch-streamer.readthedocs.io.
Development
Setup
The following script creates a virtual environment using pyenv for the project and installs dependencies with uv.
pyenv install 3.10
pyenv virtualenv 3.10 torch-streamer
bin/deps
You can also use pre-commit with the project to run tests, etc. at commit time.
pre-commit install
Testing
Testing, formatting, and static checking can all be done with pre-commit at any time.
pre-commit run --all-files
There is also a watcher script that can be used to run these whenever a file changes.
bin/watch
Documentation
The project uses MkDocs with mkdocstrings for documentation, and you can start a mkdocs web server to test/edit documentation as follows.
bin/docserve
Documentation is hosted by Read the Docs and will automatically update when the main branch is merged.
Releasing
The library can be updated on the main PyPI repository as follows.
bin/release pypi
If needed, you can release to the test PyPI repository with this command.
bin/release pypi-test
License
Copyright © 2024 Brent M. Spell
Licensed under the MIT License (the "License"). You may not use this package except in compliance with the License. You may obtain a copy of the License at
https://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file torch_streamer-0.0.2.tar.gz
.
File metadata
- Download URL: torch_streamer-0.0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34737f1c858558479439ac203c6fac9131ee40f70a50853fdc4a0be6d9ca77fb |
|
MD5 | 179e2d528b172f03b8f6f4efb6d80358 |
|
BLAKE2b-256 | 16b0afd723c120a0ed54216e941a588a76883062e36e2285aeb95e306de17ab2 |
File details
Details for the file torch_streamer-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: torch_streamer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5cf0538e94fea3938ab84b00ed96df3fabb67a3d2f65b167e20412523485b54 |
|
MD5 | 14a9985c186f4049571cc522f3ab8e95 |
|
BLAKE2b-256 | 0ed25061ad2b21116925107fe817f525c85f9c08114afed200fd15230abbda71 |