Uh oh!
There was an error while loading. Please reload this page.
[runtime] Add Metadata classes for AOTExecutor - #10282
Conversation
c6022d6 to
2f64ab0Compare* These were autogenerated in the original PR, but checking them in as plain code until we can revisit the auto-generator approach.
2f64ab0 to
4d3d047CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
masahi
commented
Feb 21, 2022
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| }; | ||
| class InMemoryMetadataNode : public ::tvm::target::metadata::VisitableMetadataNode { |
There was a problem hiding this comment.
Can you provide more explanation for the variants of InMemory* ? Also the reasons for needing a seperate object for that as opposed to having a constructor for MetadataNode
areusch
left a comment
There was a problem hiding this comment.
@manupa-arm I added a bunch of docs, PTAL when you get a minute!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| }; | ||
| class InMemoryMetadataNode : public ::tvm::target::metadata::VisitableMetadataNode { |
tmoreau89
commented
Feb 22, 2022
Thank you @manupa-arm and @areusch ! This PR has been merged. |
* Add new Metadata classes and base implementation. * These were autogenerated in the original PR, but checking them in as plain code until we can revisit the auto-generator approach. * address masa comments * Add documentation per Manupa's comments, and move kMetadataVersion namespace. * remove get_name function, used for debugging * clang-format
This PR adds Metadata classes to hold model metadata needed to implement a Module-based Model Runtime interface for AOT. These Metadata implementations are distinct from others in the codebase in that all of the backing data can exist in C as const struct (meaning that on small targets, it can live along with the code in e.g. flash memory).
TODO: add test to verify that metadata.h compiles from a C compiler.
cc @Mousius@manupa-arm@kparzysz-quic@masahi@mehrdadh