Unverified Commit e234c183 authored by ShawnHu's avatar ShawnHu Committed by GitHub
Browse files

Add type hints in ops/border_align.py (#2026)

parent ea173c9f
......@@ -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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment