Skip to main content

One line functions for common tasks

Project description

Utilities for simple needs

Auxiliary Functions

There are simple functions that are overloaded to take inputs and perform repetitive tasks that usually take a few lines to write

Images

show, inspect, Glob, read, resize, rotate

Files and Paths

stem, Glob, parent, name, fname,

makedir, zip_files, unzip_file,

find, extn,

readlines, writelines

Lists

L, flatten

Dump and load python objects

loaddill,dumpdill

Misc

Tqdm, Timer, randint, Logger

Sets

unique, diff, choose, common

Pytorch Modules

Reshape and Permute (nn.Modules)

Report as Pytorch Lightning Callback

LightningReport

and many more to come...

Install

pip install torch_snippets

Usage

import pytorch_snippets
dir(pytorch_snippets)

Project details


Release history Release notifications | RSS feed

This version

0.402

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torch_snippets-0.402.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

torch_snippets-0.402-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file torch_snippets-0.402.tar.gz.

File metadata

  • Download URL: torch_snippets-0.402.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.4

File hashes

Hashes for torch_snippets-0.402.tar.gz
Algorithm Hash digest
SHA256 dc300a1cce2f4fa2bb262709832a52fb5dd088ce94dcafc88c4eb26c81a14155
MD5 810b45fd77b1bc727b2316bdcd367a98
BLAKE2b-256 3d3ae24f13271fc876010940319c47d258fa4950fe5ed5eec66bd1813db45af0

See more details on using hashes here.

File details

Details for the file torch_snippets-0.402-py3-none-any.whl.

File metadata

  • Download URL: torch_snippets-0.402-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.4

File hashes

Hashes for torch_snippets-0.402-py3-none-any.whl
Algorithm Hash digest
SHA256 aa282c909b881e941c1e16ce7c41b1b78f9620d3ffb5af960f56f029d2960451
MD5 8d8bb3ea72a6f52f15572576be548c3c
BLAKE2b-256 c51007ce57b5132320dd88d559f13028a3b97202c3e46fda5efb23be2eb1a078

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page