Skip to content

Commit

Permalink
removing apex
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Dec 20, 2023
1 parent ad62db7 commit 59c8be3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions makani/networks/afnonet_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import torch
import torch.nn as nn
import torch.nn.functional as F
from apex.normalization import FusedLayerNorm
import torch.fft
from torch.nn.modules.container import Sequential
from torch.utils.checkpoint import checkpoint_sequential
Expand Down Expand Up @@ -282,7 +281,7 @@ def _init_weights(self, m):
# nn.init.normal_(m.weight, std=0.02)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
elif isinstance(m, nn.LayerNorm) or isinstance(m, FusedLayerNorm) or isinstance(m, nn.InstanceNorm3d):
elif isinstance(m, nn.LayerNorm) or isinstance(m, nn.InstanceNorm3d):
nn.init.constant_(m.bias, 0)
nn.init.constant_(m.weight, 1.0)

Expand Down

0 comments on commit 59c8be3

Please sign in to comment.