Skip to content

register batchnorm for opset14 cuda provider#7806

Merged
askhade merged 1 commit into
masterfrom
askhade/opset14_registrations
May 24, 2021
Merged

register batchnorm for opset14 cuda provider#7806
askhade merged 1 commit into
masterfrom
askhade/opset14_registrations

Conversation

@askhade
Copy link
Copy Markdown
Contributor

@askhade askhade commented May 24, 2021

Description: Register batch norm opset 14 for cuda provider

Motivation and Context

  • Enable complete support for onnx ops in ort
  • If it fixes an open issue, please link to the issue here.

@askhade askhade requested a review from a team as a code owner May 24, 2021 04:37
@askhade askhade requested a review from SherlockNoMad May 24, 2021 04:39
@askhade askhade merged commit da5ab32 into master May 24, 2021
@askhade askhade deleted the askhade/opset14_registrations branch May 24, 2021 18:02
BatchNormalization, \
kOnnxDomain, \
9, \
14, \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like this kernel registration has a small bug. Opset-14 introduced a new type constraint 'U' for mean/var. The implementation only supports cases where T == U. For T != U cases, it will crash within the kernel when we reference data of type T for the inputs containing type U. I guess we need to add .TypeConstraint("U",DataTypeImpl::GetTensorType<T>()) here.

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.

4 participants