Practical Pipelining for pyTorch
Project description
Torch Tensor Types
This package is a Quality of Life improvement when prototyping and processing Tensor objects from the pyTorch library. The TensorType class is a Pipeline for preprocessing tensors automatically, and include multiple utility methods. You can add TensorTypes together to have a longer preprocessing pipeline.
For example, this code
fake_image = model(torch.unsqueeze(real_image, 0).cuda()).cpu().detach().numpy()[0]
can be replaced by
fake_image = SingleDisplayableImage<<model(ModelInputFormat<<real_image)
Project details
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-tensor-type-0.0.1.tar.gz
.
File metadata
- Download URL: torch-tensor-type-0.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34033a0007a1ea2ed20390f0caa1cf599fe3fe1eeffb2851bfc48604dee51d2f |
|
MD5 | dd40de64157a4e15481420a8febb257f |
|
BLAKE2b-256 | 03bd29a343fe6ddc2b4ccd7be5fbd1662f3b6d2dc075b2c0c65ac65d212d39e4 |
File details
Details for the file torch_tensor_type-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: torch_tensor_type-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41096a9fa049117405a196160cc9c84d9bd94a9f213f9d1c0885ff7add591c07 |
|
MD5 | dc3d46509b36d24b6d601147f1383b42 |
|
BLAKE2b-256 | b1c6fa74dafbeba51802fd743b68d854ce817b87bf7c0ec4ee7f1fce10d0d0f0 |