Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add InstanceNormalization op to DEFAULT_OP_BLOCK_LIST #197

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

TomWildenhain-Microsoft
Copy link
Contributor

No description provided.

@TomWildenhain-Microsoft TomWildenhain-Microsoft merged commit fd2da18 into master Sep 10, 2021
@TomWildenhain-Microsoft TomWildenhain-Microsoft deleted the tom/skip_instance_norm_fp16 branch September 10, 2021 20:07
BowenBao pushed a commit that referenced this pull request Dec 8, 2021
This PR is to remove InstanceNormalization op from DEFAULT_OP_BLOCK_LIST. 

The background is:

- 3 months ago, I found InstanceNormalization was unable to work on fp16. It would generate below error:

```
File "/usr/local/lib/python3.6/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 124, in run
return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running InstanceNormalization node. Name:'InstanceNormalization_31' Status Message: CUDNN error executing cudnnBatchNormalizationForwardTraining( CudnnHandle(), CUDNN_BATCHNORM_SPATIAL, &one, &zero, data_desc, x_data, data_desc, y_data, stats_desc, unused_scale.get(), unused_bias.get(), 1.0f, mean.get(), variance.get(), CUDNN_BN_MIN_EPSILON, nullptr, nullptr)
```
And, @TomWildenhain-Microsoft helped create this PR to block InstanceNormalization to convert fp16: #197

- Meanwhile, I also asked ORT team's help to investigate and fix InstanceNormalization op issue on fp16. The fix was done recently (Nov. 29, 2021) by @hariharans29 in this PR: microsoft/onnxruntime#9879

So, InstanceNormalization is no needed to be blocked any more. And this PR is to remove InstanceNormalization op from DEFAULT_OP_BLOCK_LIST.
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.

2 participants