Skip to content

Commit 3c88f08

Browse files
author
Josh Fromm
committed
Formatting.
1 parent 97f97ed commit 3c88f08

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/relax/op/image/resize.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ InferLayoutOutput InferLayoutResize2d(const Call& call,
123123
data_layout = GetLayoutDecision(var_layout_map, call->args[0]);
124124
new_attrs->layout = TransposeLike(attrs->layout, InitialLayout(4), data_layout->layout).name();
125125
}
126-
return InferLayoutOutput({data_layout, InitialNLayout(call->args[1])}, {data_layout}, Attrs(new_attrs));
126+
return InferLayoutOutput({data_layout, InitialNLayout(call->args[1])}, {data_layout},
127+
Attrs(new_attrs));
127128
}
128129

129130
TVM_REGISTER_OP("relax.image.resize2d")

tests/python/relax/test_frontend_nn_modules.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,13 @@ def forward(
257257
R.func_attr({"num_input": 2})
258258
with R.dataflow():
259259
lv1: R.Tensor((1, 32, 30, 30, 30), dtype="float32") = R.nn.conv3d(x, weight)
260-
lv2: R.Tensor((1, 32, 1, 1, 1), dtype="float32") = R.reshape(bias, R.shape([1, 32, 1, 1, 1]))
261-
conv3d: R.Tensor((1, 32, 30, 30, 30), dtype="float32") = R.add(lv1, lv2)
262-
gv1: R.Tuple(R.Tensor((1, 32, 30, 30, 30), dtype="float32"), R.Tuple(R.Object)) = conv3d, (
263-
_io,
260+
lv2: R.Tensor((1, 32, 1, 1, 1), dtype="float32") = R.reshape(
261+
bias, R.shape([1, 32, 1, 1, 1])
264262
)
263+
conv3d: R.Tensor((1, 32, 30, 30, 30), dtype="float32") = R.add(lv1, lv2)
264+
gv1: R.Tuple(
265+
R.Tensor((1, 32, 30, 30, 30), dtype="float32"), R.Tuple(R.Object)
266+
) = conv3d, (_io,)
265267
R.output(gv1)
266268
return gv1
267269

0 commit comments

Comments
 (0)