ccjoechou commented on a change in pull request #9328:
URL: https://github.com/apache/tvm/pull/9328#discussion_r732354689
##########
File path: src/relay/op/nn/pooling.cc
##########
@@ -49,8 +49,12 @@ InferCorrectLayoutOutput PoolInferCorrectLayout(const Attrs&
attrs,
ICHECK(attrs_ptr);
ObjectPtr<T> params = make_object<T>(*attrs_ptr);
- if (new_in_layouts.defined()) {
- // Set the pool with the new layout.
+ if (params->out_layout != "") {
+ // when users specify the out_layout of pooling, transforms.ConvertLayout
pass will
+ // follow user's preference
+ ICHECK_EQ(params->layout, params->out_layout);
Review comment:
Updated pooling.cc by adding error message as suggested.
--
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]