提交 e448bdb2 编写于 作者: T tink2123

modified some comments

test=develop
上级 88744e4a
......@@ -128,7 +128,7 @@ class InterpolateOpMaker : public framework::OpProtoAndCheckerMaker {
Nearest neighbor interpolation:
case 1:
if:
align_corners = False
input : (N,C,H_in,W_in)
......@@ -137,7 +137,7 @@ class InterpolateOpMaker : public framework::OpProtoAndCheckerMaker {
H_out = \left \lfloor {H_{in} * scale_{}factor}} \right \rfloor
W_out = \left \lfloor {W_{in} * scale_{}factor}} \right \rfloor
case 2:
else:
align_corners = True
input : (N,C,H_in,W_in)
......
......@@ -6570,7 +6570,7 @@ def image_resize(input,
Nearest neighbor interpolation:
case 1:
if:
align_corners = False
input : (N,C,H_in,W_in)
......@@ -6579,7 +6579,7 @@ def image_resize(input,
H_out = \left \lfloor {H_{in} * scale_{}factor}} \right \rfloor
W_out = \left \lfloor {W_{in} * scale_{}factor}} \right \rfloor
case 2:
else:
align_corners = True
input : (N,C,H_in,W_in)
......@@ -6866,7 +6866,7 @@ def resize_nearest(input,
Nearest neighbor interpolation:
case 1:
if:
align_corners = False
input : (N,C,H_in,W_in)
......@@ -6875,7 +6875,7 @@ def resize_nearest(input,
H_out = \left \lfloor {H_{in} * scale_{}factor}} \right \rfloor
W_out = \left \lfloor {W_{in} * scale_{}factor}} \right \rfloor
case 2:
else:
align_corners = True
input : (N,C,H_in,W_in)
......
......@@ -208,7 +208,7 @@ class TestNearestNeighborInterpCase1Uint8(TestNearestInterpOpUint8):
self.input_shape = [2, 3, 128, 64]
self.out_h = 120
self.out_w = 50
self.align_corners = False
self.align_corners = True
class TestNearestNeighborInterpCase2Uint8(TestNearestInterpOpUint8):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册