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

Fix checkfail in QuantizedConv2D with invalid input shape dimensions #63288

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

SuryanarayanaY
Copy link
Collaborator

A checkfail can happen in raw_ops.QuantizedConv2D with invalid input shape i.e presence of 0 in input shape dimensions. Repro gist.

Fixes #59927 .

A checkfail can happen in QuantizedConv2D with invalid input shape i.e presence of 0 in input shape dimensions. Repro gist.

Fixes #59927 .
@google-ml-butler google-ml-butler bot added the size:XS CL Change Size: Extra Small label Mar 8, 2024
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Mar 8, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Mar 8, 2024
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Mar 8, 2024
@gbaned gbaned added the comp:core issues related to core part of tensorflow label Mar 8, 2024
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 615401428
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 615218481
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
…apper`.

Also add a simple class to select the right `IteratorContext` when index
shuffling is needed.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 615107953
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
This cl adds an XLA flag `--require_complete_aot_autotune_results` that requires complete AOT autotuning results inside XLA, so that a `NotFound` will be raised when there is cache miss and JIT autotuning is needed. This can help users detect JIT autotuning happening inside XLA.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 613961149
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
It's only used by CudaPlatform, so do the equivalent work there.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 614837803
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 615218481
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
…apper`.

Also add a simple class to select the right `IteratorContext` when index
shuffling is needed.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 615107953
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
…anslate that to entry_computation_layout attached to HLO.

This is very similar to how layouts are plumbed from stablehlo to entry_computation_layout.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 606414264
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
This cl adds an XLA flag `--require_complete_aot_autotune_results` that requires complete AOT autotuning results inside XLA, so that a `NotFound` will be raised when there is cache miss and JIT autotuning is needed. This can help users detect JIT autotuning happening inside XLA.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 613961149
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
Rename TPU to Replicated in more functions in TF2XLA MLIR phase 1 bridge.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#63288 from tensorflow:Surya_QuantizedConv2D_checkfail_fix bba7c37
PiperOrigin-RevId: 611193698
@copybara-service copybara-service bot merged commit 0b6c03c into master Mar 13, 2024
13 of 15 checks passed
PR Queue automation moved this from Assigned Reviewer to Merged Mar 13, 2024
@copybara-service copybara-service bot deleted the Surya_QuantizedConv2D_checkfail_fix branch March 13, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:core issues related to core part of tensorflow ready to pull PR ready for merge process size:XS CL Change Size: Extra Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

A crash due to check-fail can be triggered in QuantizedConv2D
4 participants