提交 d22d1676 编写于 作者: M Megvii Engine Team

feat(mge): do not export F.nn.roi_align

GitOrigin-RevId: c2ac7bab326019132640974472067b9454d5d200
上级 9c561134
......@@ -45,7 +45,6 @@ __all__ = [
"max_pool2d",
"one_hot",
"prelu",
"roi_align",
"roi_pooling",
"softmax",
"softplus",
......@@ -1382,7 +1381,7 @@ def roi_align(
np.random.seed(42)
inp = tensor(np.random.randn(1, 1, 128, 128))
rois = tensor(np.random.random((4, 5)))
y = F.roi_align(inp, rois, (2, 2))
y = F.nn.roi_align(inp, rois, (2, 2))
print(y.numpy()[0])
Outputs:
......
......@@ -170,7 +170,7 @@ def test_roi_align():
grad = Grad().wrt(inp_feat, callback=_save_to(inp_feat))
output_shape = (7, 7)
out_feat = F.roi_align(
out_feat = F.nn.roi_align(
inp_feat,
rois,
output_shape=output_shape,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册