mirror of
https://github.com/open-mmlab/mmcv.git
synced 2025-06-03 21:54:52 +08:00
[Fix] fix assert (#1490)
This commit is contained in:
parent
78305e7811
commit
71341e9a0a
@ -87,8 +87,8 @@ class DeformConv2dFunction(Function):
|
||||
ctx.bufs_ = [input.new_empty(0), input.new_empty(0)] # columns, ones
|
||||
|
||||
cur_im2col_step = min(ctx.im2col_step, input.size(0))
|
||||
assert (input.size(0) %
|
||||
cur_im2col_step) == 0, 'im2col step must divide batchsize'
|
||||
assert (input.size(0) % cur_im2col_step
|
||||
) == 0, 'batch size must be divisible by im2col_step'
|
||||
ext_module.deform_conv_forward(
|
||||
input,
|
||||
weight,
|
||||
|
Loading…
x
Reference in New Issue
Block a user