Skip to content

Commit e27c16b

Browse files
committed
Remove unecessary code for synbn guard
1 parent 0da3c9e commit e27c16b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

timm/models/layers/norm_act.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
import torch
66
from torch import nn as nn
77
from torch.nn import functional as F
8-
try:
9-
from torch.nn.modules._functions import SyncBatchNorm as sync_batch_norm
10-
FULL_SYNC_BN = True
11-
except ImportError:
12-
FULL_SYNC_BN = False
138

149
from .trace_utils import _assert
1510
from .create_act import get_act_layer

0 commit comments

Comments
 (0)