Skip to content

Add a pass to strip tf.Assert ops #5290

Closed

Description

@stellaraccident

TensorFlow lacks a mechanism to globally enable or disable asserts, so many models come through in inconsistent states based on model specific flags and mechanisms for controlling this behavior. IREE should just have a pass that strips them (which seems to be what XLA conversion does somewhere in its backend). We can potentially do better at some point and lower them to something that IREE does understand, but that will require further datatype implementation (i.e. strings, etc) and a lot of times the conditions that asserts are guarding are the most complicated part of a model.

Activity

  1. added
    integrations/tensorflow
    on Apr 2, 2021
  2. stellaraccident commented on Apr 2, 2021

    @stellaraccident
    CollaboratorAuthor

    Should fix #4865 (which I still have not been able to repro, but we now have an internal model with a similar issue)

  3. added 2 commits that reference this issue on Apr 2, 2021
    4731167
    d70bcae
  4. added a commit that references this issue on Apr 2, 2021
    402550b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

integrations/tensorflow

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions