-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
HloRunnerExecutableHandle
.
At the moment the HloRunnerInterface is tightly coupled with the Executable class. The PjRt runner actually consumes PjRtExecutable instances, so the idea with HloRunnerExecutableHandle is to hide away the implementation details and effectively return a wrapper class that hides all of this implementation detail. The handle class records the owning HloRunnerInterface implementation so that we can check that executables created with one runner cannot be used by another runner. By doing this we can ensure users cannot pass in externally-created executables which may not be of the type that we need for a given runner implementation. PiperOrigin-RevId: 721127545
- Loading branch information
1 parent
5631fbd
commit 356965b
Showing
10 changed files
with
202 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.