Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

CyberZHG/torch-layer-normalization

Repository files navigation

PyTorch Layer Normalization

Travis Coverage

Implementation of the paper: Layer Normalization

Install

pip install torch-layer-normalization

Usage

from torch_layer_normalization import LayerNormalization

LayerNormalization(normal_shape=normal_shape)
# The `normal_shape` could be the last dimension of the input tensor or the shape of the input tensor.