mbs-octoml edited a comment on issue #9013:
URL: https://github.com/apache/tvm/issues/9013#issuecomment-924421507
On the BAD runs:
```
[14:56:21] /home/mbs/github/mbs-tvm/src/relay/ir/transform.cc:135:
AlterOpLayout: Input module:
def @main(%data: Tensor[(1, 3, 10, 10), float32]) -> Tensor[(1, 6, 10, 10),
float32] {
nn.conv2d(%data, meta[relay.Constant][0] /* ty=Tensor[(6, 3, 5, 5),
float32] */, padding=[2, 2, 2, 2], kernel_size=[5, 5], out_dtype="float32") /*
ty=Tensor[(1, 6, 10, 10), float32] */
}
[14:56:21] /home/mbs/github/mbs-tvm/src/relay/ir/transform.cc:159:
AlterOpLayout: Output module:
def @main(%data: Tensor[(1, 3, 10, 10), float32]) -> Tensor[(1, 6, 10, 10),
float32] {
%0 = layout_transform(%data, src_layout="NCHW", dst_layout="NCHW16c");
%1 = nn.conv2d(%0, meta[relay.Constant][0] /* ty=Tensor[(6, 3, 5, 5),
float32] */, padding=[2, 2, 2, 2], kernel_size=[5, 5], data_layout="NCHW16c",
out_dtype="float32");
layout_transform(%1, src_layout="NCHW16c", dst_layout="NCHW")
}
```
I can't find any matching rewrite on the GOOD runs -- they're all of the
form:
```
[14:53:31] /home/mbs/github/mbs-tvm/src/relay/ir/transform.cc:135:
AlterOpLayout: Input module:
def @main(%data: Tensor[(1, 3, 10, 10), float32]) -> Tensor[(1, 6, 10, 10),
float32] {
nn.conv2d(%data, meta[relay.Constant][0] /* ty=Tensor[(6, 3, 5, 5),
float32] */, padding=[2, 2, 2, 2], kernel_size=[5, 5], out_dtype="float32") /*
ty=Tensor[(1, 6, 10, 10), float32] */
}
[14:53:31] /home/mbs/github/mbs-tvm/src/relay/ir/transform.cc:159:
AlterOpLayout: Output module:
def @main(%data: Tensor[(1, 3, 10, 10), float32]) -> Tensor[(1, 6, 10, 10),
float32] {
%0 = layout_transform(%data, src_layout="NCHW", dst_layout="NCHW3c");
%1 = layout_transform(meta[relay.Constant][0] /* ty=Tensor[(6, 3, 5, 5),
float32] */, src_layout="OIHW", dst_layout="OIHW3i3o");
%2 = nn.contrib_conv2d_NCHWc(%0, %1, padding=[2, 2, 2, 2], channels=6,
kernel_size=[5, 5], data_layout="NCHW3c", kernel_layout="OIHW3i3o",
out_layout="NCHW3c", out_dtype="float32");
layout_transform(%2, src_layout="NCHW3c", dst_layout="NCHW")
}
```
Eh?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]