Skip to content

Disable printing op on diagnostics in user tools by default. - #5806

Merged
stellaraccident merged 1 commit into
iree-org:mainfrom
stellaraccident:disableopdiag
May 7, 2021
Merged

stellaraccident merged 1 commit into
iree-org:mainfrom
stellaraccident:disableopdiag

Conversation

@stellaraccident

Copy link
Copy Markdown
Collaborator
  • This eliminates a huge amount of the spew that comes from usage of the Python API.
  • For most of these that I have seen, additional triage would be needed anyway, and the excess printing doesn't actually help.
  • Related to iree-tf-import stack traces are an eyesore #5295

* This eliminates a huge amount of the spew that comes from usage of the Python API.
* For most of these that I have seen, additional triage would be needed anyway, and the excess printing doesn't actually help.
* Related to iree-org#5295

@phoenix-meadowlark phoenix-meadowlark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this get rid of the 1000s of lines of assembly dumping, or just the note: see current operation: part?

@stellaraccident

Copy link
Copy Markdown
Collaborator Author

Does this get rid of the 1000s of lines of assembly dumping, or just the note: see current operation: part?

Yes, it reduced a bert error I was getting to:

iree.compiler.tools.CompilerToolError: Error invoking IREE compiler tool iree-translate
Diagnostics:
<unknown>:0: error: loc(fused["bert/embeddings/embedding_lookup", "bert/embeddings/embedding_lookup_1/axis"]): 'hal.command_buffer.push_descriptor_set' op operand #7 must be buffer, but got 'tensor<1x384xi32>'
<unknown>:0: error: A failure has been detected while processing the MLIR module, a reproducer has been generated in '/tmp/iree/modules/MobileBertSquad/reproducer__iree_vmla.mlir'
<unknown>:0: error: conversion from source -> vm failed

@phoenix-meadowlark

Copy link
Copy Markdown
Contributor

Does this get rid of the 1000s of lines of assembly dumping, or just the note: see current operation: part?

Yes, it reduced a bert error I was getting to:

iree.compiler.tools.CompilerToolError: Error invoking IREE compiler tool iree-translate
Diagnostics:
<unknown>:0: error: loc(fused["bert/embeddings/embedding_lookup", "bert/embeddings/embedding_lookup_1/axis"]): 'hal.command_buffer.push_descriptor_set' op operand #7 must be buffer, but got 'tensor<1x384xi32>'
<unknown>:0: error: A failure has been detected while processing the MLIR module, a reproducer has been generated in '/tmp/iree/modules/MobileBertSquad/reproducer__iree_vmla.mlir'
<unknown>:0: error: conversion from source -> vm failed

Amazing! 🎉

@stellaraccident
stellaraccident merged commit 038d5f0 into iree-org:main May 7, 2021
@phoenix-meadowlark phoenix-meadowlark added the integrations/tensorflow TensorFlow model import and conversion label May 10, 2021
@ScottTodd ScottTodd added the quality of life 😊 Nice things are nice; let's have some label May 10, 2021
ScottTodd added a commit that referenced this pull request May 10, 2021
@not-jenni not-jenni mentioned this pull request May 10, 2021
copybara-service Bot pushed a commit that referenced this pull request May 11, 2021
* e3ecf22 Add IREE_BUILD_EMBEDDING_SAMPLES to the doc (#5823)
* 50296a9 Fix the ghost emojis on the website (#5824)
* a204da0 Disable printing op on diagnostics in iree_check_test targets. (#5820)
* 052657d Adding rank-0/1 memref -> vm.buffer conversion. (#5817)
* 88424d0 Move check for backends used in simple_embedding (#5818)
* 66e44e9 Replacing std::vector use with a simple stack/heap allocated array. (#5816)
* 893f1a2 Bumping tracy and defining TRACY_NO_FRAME_IMAGE. (#5815)
* d8de378 Workaround conflicting concatenate lowerings with a PatternBenefit. (#5810)
* fb62468 Adding switch default for vulkan tracing time scaling. Fixes #5635.
* 397c4fc Implement python argument decoding for list/tuple/dict nests. (#5811)
* 792cd6d Fix website 404 relative paths and customize the 404.html page. (#5813)
* 038d5f0 Disable printing op on diagnostics in user tools by default. (#5806)
* 4559840 Remove OUT option from iree_cc_[binary/test] (#5696)
* cb0727a Trim README.md and link to our website more prominently. (#5803)
* 0076031 Remap hyperlinks following website migration. (#5805)
* 59c7098 Add simple heuristic to decide if TensorReshape should be folded during fusion..
* dcc38a9 A few CMake config fixes. (#5801)
* 2018009 Specifying (void) for argument-less C functions. (#5793)
* 89746a0 Support linalg.pad_tensor bufferization (#5768)
* 5a58aa4 Removing the use of the SIP signature parsers from the runtime. (#5784)
* 86286d0 Update simple_embedding riscv64 prebuilt (#5794)
* dc9e245 Adding integer/float conversion to the VM. (#5787)
* f96b100 Pass write access token to publish_website workflow. (#5795)

COPYBARA_INTEGRATE_REVIEW=#5826 from not-jenni:main-to-google 4e0a633
PiperOrigin-RevId: 373052493
iree-github-actions-bot pushed a commit that referenced this pull request May 11, 2021
* e3ecf22 Add IREE_BUILD_EMBEDDING_SAMPLES to the doc (#5823)
* 50296a9 Fix the ghost emojis on the website (#5824)
* a204da0 Disable printing op on diagnostics in iree_check_test targets. (#5820)
* 052657d Adding rank-0/1 memref -> vm.buffer conversion. (#5817)
* 88424d0 Move check for backends used in simple_embedding (#5818)
* 66e44e9 Replacing std::vector use with a simple stack/heap allocated array. (#5816)
* 893f1a2 Bumping tracy and defining TRACY_NO_FRAME_IMAGE. (#5815)
* d8de378 Workaround conflicting concatenate lowerings with a PatternBenefit. (#5810)
* fb62468 Adding switch default for vulkan tracing time scaling. Fixes #5635.
* 397c4fc Implement python argument decoding for list/tuple/dict nests. (#5811)
* 792cd6d Fix website 404 relative paths and customize the 404.html page. (#5813)
* 038d5f0 Disable printing op on diagnostics in user tools by default. (#5806)
* 4559840 Remove OUT option from iree_cc_[binary/test] (#5696)
* cb0727a Trim README.md and link to our website more prominently. (#5803)
* 0076031 Remap hyperlinks following website migration. (#5805)
* 59c7098 Add simple heuristic to decide if TensorReshape should be folded during fusion..
* dcc38a9 A few CMake config fixes. (#5801)
* 2018009 Specifying (void) for argument-less C functions. (#5793)
* 89746a0 Support linalg.pad_tensor bufferization (#5768)
* 5a58aa4 Removing the use of the SIP signature parsers from the runtime. (#5784)
* 86286d0 Update simple_embedding riscv64 prebuilt (#5794)
* dc9e245 Adding integer/float conversion to the VM. (#5787)
* f96b100 Pass write access token to publish_website workflow. (#5795)

PiperOrigin-RevId: 373052493
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrations/tensorflow TensorFlow model import and conversion quality of life 😊 Nice things are nice; let's have some

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants