Skip to content

[IR] Input specification assertion message for valid IR check#78

Merged
hjjq merged 3 commits intohidet-org:mainfrom
AndreSlavescu:docs
Jan 24, 2023
Merged

[IR] Input specification assertion message for valid IR check#78
hjjq merged 3 commits intohidet-org:mainfrom
AndreSlavescu:docs

Conversation

@AndreSlavescu
Copy link
Copy Markdown
Contributor

No description provided.

@AndreSlavescu AndreSlavescu changed the title Input specification assertion message for valid IR check [IR] Input specification assertion message for valid IR check Jan 24, 2023
@hjjq hjjq merged commit d0ee7ab into hidet-org:main Jan 24, 2023
yaoyaoding pushed a commit that referenced this pull request Apr 3, 2024
The CentML compilation backend I am working on wants to wrap the
CompiledGraphs forward function (the one returned by get_wrapper) in a
torch.fx.GraphModule. This GraphModule would then be pickled and sent
from a server to a client.

However, it isn't possible to pickle the lambda/local function returned
by get_wrapper. Therefore, I am turning get_wrapper into a class
CompiledForwardFunction whose forward function behaves like the wrapper
returned by get_wrapper.

Additionally, in order to pickle CompiledForwardFunction, I have defined
pickling and unpickling behaviour for CompiledGraph using __getstate__
and __setstate__ respectively. These just call CompiledGraph's existing
save and load functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants