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.
Refactor onnx conversion (facebookresearch#100)
Summary: Pull Request resolved: facebookresearch#100 This diff refactors CrypTen's conversion of onnx models to allow for future alterations of the imported onnx graph. Changes include * moving logic of hairy onnx conversions into a separate module (`onnx_converter.py`) with its own tests * adding several tests for helper functions to map onnx graphs to crypten modules * refactoring more complex functions such as `from_pytorch` and `from_onnx` using helpers for easier testings / debugging * using a context manager for all `io.BytesIO()` streams to ensure resource is released Reviewed By: knottb Differential Revision: D21072663 fbshipit-source-id: f0e7814195c7fd2e0e926a5656dec59dba9d6a43
- Loading branch information
1 parent
d6f221b
commit 1aa8ced
Showing
5 changed files
with
792 additions
and
650 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
Oops, something went wrong.