Skip to content

Removes non-standard constructors from CompiledModule - #2586

Merged
phoenix-meadowlark merged 1 commit into
iree-org:mainfrom
phoenix-meadowlark:compiled-module-refactor
Jul 23, 2020
Merged

phoenix-meadowlark merged 1 commit into
iree-org:mainfrom
phoenix-meadowlark:compiled-module-refactor

Conversation

@phoenix-meadowlark

Copy link
Copy Markdown
Contributor

CompiledModule used to use a static create method to dynamically create CompiledModule subclasses of the correct type. This can be done just as well using the class on a BackendInfo value, and avoids using non-standard constructors.

compile and from_existing were spiritual successors of this method, and have been removed in favor of using the default constructor and a create_reinitialized method that passes __init__ a _ prefixed arg.

@phoenix-meadowlark
phoenix-meadowlark force-pushed the compiled-module-refactor branch 3 times, most recently from a19dc5c to 0901889 Compare July 21, 2020 22:54
@phoenix-meadowlark
phoenix-meadowlark force-pushed the compiled-module-refactor branch from 0901889 to eb15e15 Compare July 21, 2020 23:21
@phoenix-meadowlark
phoenix-meadowlark marked this pull request as ready for review July 22, 2020 00:11
@phoenix-meadowlark phoenix-meadowlark added integrations Relating to high-level frontend integrations integrations/tensorflow TensorFlow model import and conversion labels Jul 22, 2020
@phoenix-meadowlark
phoenix-meadowlark merged commit 7a5b8c9 into iree-org:main Jul 23, 2020
@rsuderman rsuderman mentioned this pull request Jul 23, 2020
@phoenix-meadowlark
phoenix-meadowlark deleted the compiled-module-refactor branch October 6, 2020 16:42
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 integrations Relating to high-level frontend integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants