Expose layer
Browse files
torch-ext/deformable_detr/__init__.py
CHANGED
|
@@ -2,6 +2,7 @@ from typing import List
|
|
| 2 |
import torch
|
| 3 |
|
| 4 |
from ._ops import ops
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
def ms_deform_attn_backward(
|
|
@@ -42,4 +43,4 @@ def ms_deform_attn_forward(
|
|
| 42 |
)
|
| 43 |
|
| 44 |
|
| 45 |
-
__all__ = ["ms_deform_attn_forward", "ms_deform_attn_backward"]
|
|
|
|
| 2 |
import torch
|
| 3 |
|
| 4 |
from ._ops import ops
|
| 5 |
+
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
def ms_deform_attn_backward(
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
|
| 46 |
+
__all__ = ["layers", "ms_deform_attn_forward", "ms_deform_attn_backward"]
|
torch-ext/deformable_detr/layers.py
CHANGED
|
@@ -79,3 +79,6 @@ class MultiScaleDeformableAttention(nn.Module):
|
|
| 79 |
attention_weights,
|
| 80 |
im2col_step,
|
| 81 |
)
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
attention_weights,
|
| 80 |
im2col_step,
|
| 81 |
)
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
__all__ = ["MultiScaleDeformableAttention"]
|