tensorplay.nn
These are the basic building blocks for graphs:
Containers
Global Hooks For Module
|
Register a forward pre-hook common to all modules. |
Register a global forward hook for all the modules. |
|
|
Register a backward pre-hook common to all the modules. |
|
Register a backward hook common to all the modules. |
|
Register a buffer registration hook common to all modules. |
|
Register a module registration hook common to all modules. |
|
Register a parameter registration hook common to all modules. |
Utilities
From the tensorplay.nn.utils module:
Utility functions to clip parameter gradients.
Utility functions to flatten and unflatten Module parameters to and from a single vector.
Utility functions to fuse Modules with BatchNorm modules.
Utility functions to convert Module parameter memory formats.
Utility functions to apply and remove weight normalization from Module parameters.
Utility functions for initializing Module parameters.
Utility classes and functions for pruning Module parameters.
Parametrizations implemented using the new parametrization functionality
in tensorplay.nn.utils.parameterize.register_parametrization().
Utility functions to parametrize Tensors on existing Modules.
Note that these functions can be used to parametrize a given Parameter
or Buffer given a specific function that maps from an input space to the
parametrized space. They are not parameterizations that would transform
an object into a parameter. See the
Parametrizations tutorial
for more information on how to implement your own parametrizations.
Utility functions to call a given Module in a stateless manner.
Utility functions in other modules
Calls |
|
Holds the data and list of |
|
Packs a Tensor containing padded sequences of variable length. |
|
Pad a packed batch of variable length sequences. |
|
Pad a list of variable length Tensors with |
|
Packs a list of variable length Tensors. |
|
Unpack PackedSequence into a list of variable length Tensors. |
|
Unpad padded Tensor into a list of variable length Tensors. |
|
Returns the inverse of |
|
Returns whether |
|
Flattens a contiguous range of dims into a tensor. |
|
Unflattens a tensor dim expanding it to a desired shape. |
Quantized Functions
Quantization refers to techniques for performing computations and storing tensors at lower bitwidths than floating point precision. TensorPlay supports both per tensor and per channel asymmetric linear quantization. To learn more how to use quantized functions in TensorPlay, please refer to the Quantization documentation.
Lazy Modules Initialization
A mixin for modules that lazily initialize parameters, also known as "lazy modules". |

