mirror of https://github.com/open-mmlab/mmcv.git
Add type hints in ops/border_align.py (#2026)
parent
ea173c9f07
commit
e234c183cc
|
@ -85,11 +85,12 @@ class BorderAlign(nn.Module):
|
|||
(e.g. top, bottom, left, right).
|
||||
"""
|
||||
|
||||
def __init__(self, pool_size):
|
||||
def __init__(self, pool_size: int):
|
||||
super().__init__()
|
||||
self.pool_size = pool_size
|
||||
|
||||
def forward(self, input, boxes):
|
||||
def forward(self, input: torch.Tensor,
|
||||
boxes: torch.Tensor) -> torch.Tensor:
|
||||
"""
|
||||
Args:
|
||||
input: Features with shape [N,4C,H,W]. Channels ranged in [0,C),
|
||||
|
|
Loading…
Reference in New Issue