mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Update metaformers.py
This commit is contained in:
parent
944fd549c4
commit
1b3318bf19
@ -317,7 +317,7 @@ class RandomMixing(nn.Module):
|
||||
x = x.reshape(B, H, W, C)
|
||||
return x
|
||||
|
||||
'''
|
||||
|
||||
class LayerNormGeneral(nn.Module):
|
||||
r""" General LayerNorm for different situations.
|
||||
|
||||
@ -416,7 +416,7 @@ class LayerNormGeneral(nn.Module):
|
||||
if self.use_bias:
|
||||
x = x + self.bias
|
||||
return x
|
||||
|
||||
'''
|
||||
class SepConv(nn.Module):
|
||||
r"""
|
||||
Inverted separable convolution from MobileNetV2: https://arxiv.org/abs/1801.04381.
|
||||
|
Loading…
x
Reference in New Issue
Block a user