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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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