未验证 提交 214a48a7 编辑于 作者: Yuxin Wu's avatar Yuxin Wu 提交者: GitHub
浏览文件

Test bc compatible

上级 c2f05ff1
......@@ -88,11 +88,6 @@ class DefaultAnchorGenerator(nn.Module):
the dimension of each anchor box.
"""
__ignored_properties__ = ["num_cell_anchors", "num_anchors"]
"""
properties that should not be JITted.
"""
@configurable
def __init__(self, *, sizes, aspect_ratios, strides, offset=0.5):
"""
......@@ -139,6 +134,7 @@ class DefaultAnchorGenerator(nn.Module):
return BufferList(cell_anchors)
@property
@torch.jit.ignore
def num_cell_anchors(self):
"""
Alias of `num_anchors`.
......@@ -146,6 +142,7 @@ class DefaultAnchorGenerator(nn.Module):
return self.num_anchors
@property
@torch.jit.ignore
def num_anchors(self):
"""
Returns:
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册