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
Close
Hashes for torch_tensor_type-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41096a9fa049117405a196160cc9c84d9bd94a9f213f9d1c0885ff7add591c07 |
|
MD5 | dc3d46509b36d24b6d601147f1383b42 |
|
BLAKE2b-256 | b1c6fa74dafbeba51802fd743b68d854ce817b87bf7c0ec4ee7f1fce10d0d0f0 |