Skip to content

Commit

Permalink
modify docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
MengzhangLI committed Mar 10, 2022
1 parent 8b815e6 commit d0a7c08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mmseg/models/decode_heads/knet_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def forward(self, update_feature, input_feature):
shape: `self.in_channels`.
input_feature (torch.Tensor): Intermediate feature
with shape: (N, num_classes, conv_kernel_size**2, channels).
Returns:
Tensor: The output tensor of shape
(self.num_classes(KernelUpdateHead) * self.in_channels(KernelUpdateHead)/ in_channels, kernel size * kernel size, in_channels). # noqa
Tensor: The output tensor of shape (N*C1/C2, K*K, C2), where N is
the number of classes, C1 and C2 are the feature map channels of
KernelUpdateHead and KernelUpdator, respectively.
"""

update_feature = update_feature.reshape(-1, self.in_channels)
Expand Down

0 comments on commit d0a7c08

Please sign in to comment.