Skip to content

Commit

Permalink
Masked_conv2d NPU
Browse files Browse the repository at this point in the history
  • Loading branch information
zcc-zjut committed Nov 7, 2022
1 parent 8dab3a3 commit 97e35bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcv/ops/masked_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def forward(ctx,
groups=1)
if mask.size()[1:] != conv.size()[2:]:
raise ValueError(
'The mask is consistent with the shape of output_conv.')
'The mask is inconsistent with the shape of output_conv.')
conv_h, conv_w = conv.size()[2:]
mask_reshape = mask.reshape(1, 1, conv_h, conv_w)
output = conv * mask_reshape
Expand Down

0 comments on commit 97e35bc

Please sign in to comment.