Update models/GroundingDINO/ms_deform_attn.py
Browse files
models/GroundingDINO/ms_deform_attn.py
CHANGED
|
@@ -51,6 +51,7 @@ class MultiScaleDeformableAttnFunction(Function):
|
|
| 51 |
im2col_step,
|
| 52 |
):
|
| 53 |
ctx.im2col_step = im2col_step
|
|
|
|
| 54 |
output = _C.ms_deform_attn_forward(
|
| 55 |
value,
|
| 56 |
value_spatial_shapes,
|
|
@@ -59,6 +60,7 @@ class MultiScaleDeformableAttnFunction(Function):
|
|
| 59 |
attention_weights,
|
| 60 |
ctx.im2col_step,
|
| 61 |
)
|
|
|
|
| 62 |
ctx.save_for_backward(
|
| 63 |
value,
|
| 64 |
value_spatial_shapes,
|
|
|
|
| 51 |
im2col_step,
|
| 52 |
):
|
| 53 |
ctx.im2col_step = im2col_step
|
| 54 |
+
print("getting forward output")
|
| 55 |
output = _C.ms_deform_attn_forward(
|
| 56 |
value,
|
| 57 |
value_spatial_shapes,
|
|
|
|
| 60 |
attention_weights,
|
| 61 |
ctx.im2col_step,
|
| 62 |
)
|
| 63 |
+
print("got msdeform forward output")
|
| 64 |
ctx.save_for_backward(
|
| 65 |
value,
|
| 66 |
value_spatial_shapes,
|