Commit 2865bec7 authored by Atreya Majumdar's avatar Atreya Majumdar
Browse files

flake8

parent 1d6e7864
Loading
Loading
Loading
Loading
+16 −16
Original line number Diff line number Diff line
try:
  import torch
  import torch.nn as nn
    from torch.nn.init import _calculate_fan_in_and_fan_out, _no_grad_normal_, _no_grad_uniform_
except:
  raise ImportError('These classes require Torch to be installed.')


class LayerNorm(nn.Module):
  """Apply Layer Normalization to input.