Skip to main content

Pytorch Extension Module.

Project description

PYTHON version PyPI version Downloads

(WIP) torchex library

torchex library provides advanced Neural Network Layers. You can easily use them like using original pytorch.

Installation

$ pip install torchex

Requirements

  • Pytorch >= 1.0

Documentation

How to use

Lazy Style Model Definition

import torch
import torchex.nn as exnn

net = exnn.Linear(10)
# You don't need to give the size of input for this module.
# This network is equivalent to `nn.Linear(100, 10)`.

x = troch.randn(10, 100)

y = net(x)

torchex.nn list

  • torchex.nn.Pass
  • torchex.nn.Flatten
  • torchex.nn.Linear
    • Lazy style
  • torchex.nn.Conv1d
    • Lazy style
  • torchex.nn.Conv2d
    • Lazy style
  • torchex.nn.Conv3d
    • Lazy style
  • torchex.nn.Conv2dLocal
  • torchex.nn.GlobalAvgPool1d
  • torchex.nn.GlobalAvgPool2d
  • torchex.nn.GlobalMaxPool1d
  • torchex.nn.GlobalMaxPool2d
  • torchex.nn.MaxAvgPool2d
  • torch.nn.Crop2d
  • torch.nn.Crop3d
  • torch.nn.MLPConv2d
  • torch.nn.UpsampleConvLayer
  • torch.nn.CordConv2d
  • torch.nn.DFT1d
  • torch.nn.DFT2d
  • torch.nn.PeriodicPad2d
  • torch.nn.PeriodicPad3d
  • torch.nn.Highway
  • torch.nn.Inception
  • torch.nn.InceptionBN
  • torch.nn.IndRNNCell
  • torch.nn.IndRNNTanhCell
  • torch.nn.IndRNNReLuCell
  • torch.nn.IndRNN
  • torch.nn.GraphLinear
  • torch.nn.GraphConv
  • torch.nn.SparseMM
  • torch.nn.GraphBatchNrom

torchex.data.transforms

  • torchex.data.transforms.PadRandomSift
  • torchex.data.transforms.RandomResize

torchex.data.attribute

for visualization

  • torchex.attribute.IntegratedGradients

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

torchex-0.0.16.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchex-0.0.16-py2.py3-none-any.whl (46.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file torchex-0.0.16.tar.gz.

File metadata

  • Download URL: torchex-0.0.16.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for torchex-0.0.16.tar.gz
Algorithm Hash digest
SHA256 ba5e48a1573aeccaed30089f2082a0424fdba8b15efd15d523d9e101b3844bc6
MD5 266d7a5e703e37efc94dc9275b055b92
BLAKE2b-256 69c60f1c79ca5ad1abc12129b21e1ee041e3c10c219b2f0f1dc36723cde2616d

See more details on using hashes here.

File details

Details for the file torchex-0.0.16-py2.py3-none-any.whl.

File metadata

  • Download URL: torchex-0.0.16-py2.py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for torchex-0.0.16-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 be15107c1f0380101ad4a977df195574c1461a309f5371843606234f1b65c852
MD5 b5c82db9c1d6da0766528093433dacdd
BLAKE2b-256 cec4b866d920bfc1f03a824b0ba34591e337c92024102afd17eb3bbd6e590bc8

See more details on using hashes here.

Supported by

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