Skip to content

Conversation

@srkreddy1238
Copy link
Contributor

Added support for transposed convolution.
Epsilon support for batchnorm op added - part of v3.0. CLML version query bug fixed.

Added support for transposed convolution.
Epsilon support for batchnorm op added - part of v3.0.
CLML version query bug fixed.
@tvm-bot
Copy link
Collaborator

tvm-bot commented May 4, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: openclml See #10317 for details

Generated by tvm-bot

@srkreddy1238 srkreddy1238 requested a review from echuraev May 4, 2023 17:16
Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR. In general LGTM. Some minor comments.

name = "conv2d_transpose";
const auto* conv_transpose_attr = nodes.conv->attrs.as<Conv2DTransposeAttrs>();
ICHECK(conv_transpose_attr);
ICHECK(conv_transpose_attr->kernel_layout == "OIHW")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to check kernel_layout here? You have already done it in python/tvm/relay/op/contrib/clml.py. If it is not necessary, then probably the same checks can be removed for convolution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will remove this check in python frontend. Codegen is the final component to make sure we don't generate incompatible code.

"""Utility function to get clml version version"""

return tvm.support.libinfo().get("TVM_CLML_VERSION", 2)
return int(tvm.support.libinfo().get("CLML_VERSION_MAJOR", 2))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change TVM_CLML_VERSION on CLML_VERSION_MAJOR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version check from libinfo was broken earlier and not functional. TVM_CLML_VERSION was compiler flag and cmake option is CLML_VERSION_MAJOR. We can maintain same for both.

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@srkreddy1238 srkreddy1238 force-pushed the clml_transpose_conv branch from 76f43fc to a7605af Compare May 10, 2023 06:32
@echuraev echuraev merged commit cca7d78 into apache:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants