File tree Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Original file line number Diff line number Diff line change @@ -109,41 +109,7 @@ def __init__(
109
109
norm_layer = norm_layer ,
110
110
act_layer = act_layer
111
111
)
112
- '''
113
- self.conv_q = nn.Sequential(OrderedDict([
114
- ('conv', nn.Conv2d(
115
- dim,
116
- dim,
117
- kernel_size=kernel_size,
118
- padding=padding,
119
- stride=stride_q,
120
- bias=bias,
121
- groups=dim
122
- )),
123
- ('bn', nn.BatchNorm2d(dim)),]))
124
- self.conv_k = nn.Sequential(OrderedDict([
125
- ('conv', nn.Conv2d(
126
- dim,
127
- dim,
128
- kernel_size=kernel_size,
129
- padding=padding,
130
- stride=stride_kv,
131
- bias=bias,
132
- groups=dim
133
- )),
134
- ('bn', nn.BatchNorm2d(dim)),]))
135
- self.conv_v = nn.Sequential(OrderedDict([
136
- ('conv', nn.Conv2d(
137
- dim,
138
- dim,
139
- kernel_size=kernel_size,
140
- padding=padding,
141
- stride=stride_kv,
142
- bias=bias,
143
- groups=dim
144
- )),
145
- ('bn', nn.BatchNorm2d(dim)),]))
146
- '''
112
+
147
113
148
114
def forward (self , x : torch .Tensor ) -> Tuple [torch .Tensor , torch .Tensor , torch .Tensor ]:
149
115
B , C , H , W = x .shape
You can’t perform that action at this time.
0 commit comments