Skip to content

Support tools to read input values from a file #2304

Closed

Description

@hanhanW

When running a mlir file or a module, we need to specify input values via command argument. This sometimes causes issues like argument list too long. This situation happens a lot after we started to support models from python level. Because codegen team would like to debug starting from mlir file level (the stage after SaveModel).

For now, a workaround is do not specify values so all the input values would be zero but it's harder to check if there is a numerical issue. Another workaround is starting from python level but it would waste too much time on unnecessary steps.

Support reading input values from a file for tools like iree-run-mlir/iree-run-module/iree-run-benchmark would be useful and speed up the debugging process.

Activity

  1. added
    enhancement ➕
    on Jun 24, 2020
  2. self-assigned this
    on Jun 25, 2020
  3. Vigilans commented on Mar 11, 2022

    @Vigilans

    #2545
    Why is this feature missing in latest main branch?

  4. hanhanW commented on Mar 11, 2022

    @hanhanW
    ContributorAuthor

    I think you're able to use flagfile now. It's a abseil feature.

    --flagfile=filename: read flags from file filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement ➕

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions