forked from facebookresearch/CrypTen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add load/save closure functions (facebookresearch#201)
Summary: Pull Request resolved: fairinternal/CrypTen#201 This diff adds support for using custom load and save functions in `crypten.load` and `crypten.save`. The custom load/save functions need to have the same interface as `torch.load/torch.save`. Note that this does not yet change the name of the function to `load_from_party` and `save_from_party` as we discussed in the design document. I plan to do that in the next diff. Reviewed By: knottb Differential Revision: D21025272 fbshipit-source-id: 8ae99e7b4ef0aa0ecfe99e84f4b23417f355bdaf
- Loading branch information
1 parent
2389544
commit 2825f47
Showing
2 changed files
with
67 additions
and
15 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