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.401

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.401.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: torch_snippets-0.401.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.401.tar.gz
Algorithm Hash digest
SHA256 46f521b01f47b949b3dac8a926e70927e8750e209f85dc7d8a31cb28ce0ba25b
MD5 ba9d1c6ae63b0fb864c8d9f93dcff4d4
BLAKE2b-256 2de1126d2d31611f82b7c5ba0f15837c2ec6dc618cb2ed5149a75283fa46713f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: torch_snippets-0.401-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.401-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d563ffa9f2f66c99ff5e6b9328c2636302cf5a19d4b2eabf0b6b5268b322fb
MD5 1c1486882203922a5254540d3946ec49
BLAKE2b-256 9e1e755ac28c32a07cb1b118d4870af4ebf669c2e1cebbb41d210770bdfff541

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