Skip to content

Commit

Permalink
feat(//py): register trtorch with torch op library to support
Browse files Browse the repository at this point in the history
deserializing modules in python

Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed May 31, 2020
1 parent eb636ec commit 736e914
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/trtorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
from trtorch._compiler import *
from trtorch._types import *
from trtorch import logging

def _register_with_torch():
trtorch_dir = os.path.dirname(__file__)
torch.ops.load_library(trtorch_dir + '/lib/trtorch.so')

0 comments on commit 736e914

Please sign in to comment.