Skip to content

Commit b1a88d5

Browse files
committed
updated file path according to refactored structure
Signed-off-by: Bo Wang <[email protected]>
1 parent a146e8c commit b1a88d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/custom_converters/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dir_path = os.path.dirname(os.path.realpath(__file__))
6666
trtorch_path = os.path.abspath("trtorch")
6767
6868
ext_modules = [
69-
cpp_extension.CUDAExtension('elu_converter', ['elu_converter.cpp'],
69+
cpp_extension.CUDAExtension('elu_converter', ['./csrc/elu_converter.cpp'],
7070
library_dirs=[(trtorch_path + "/lib/")],
7171
libraries=["trtorch"],
7272
include_dirs=[trtorch_path + "/include/trtorch/"])
@@ -100,7 +100,7 @@ import torch
100100
import trtorch
101101

102102
# After "python3 setup install", you should find this .so file under generated "build" directory
103-
torch.ops.load_library('./build/lib.linux-x86_64-3.6/elu_converter.cpython-36m-x86_64-linux-gnu.so')
103+
torch.ops.load_library('./elu_converter/build/lib.linux-x86_64-3.6/elu_converter.cpython-36m-x86_64-linux-gnu.so')
104104

105105

106106
class Elu(torch.nn.Module):

examples/custom_converters/elu_converter/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
trtorch_path = os.path.abspath("/home/bowa/Downloads/trtorch")
1212

1313
ext_modules = [
14-
cpp_extension.CUDAExtension('elu_converter', ['elu_converter.cpp'],
14+
cpp_extension.CUDAExtension('elu_converter', ['./csrc/elu_converter.cpp'],
1515
library_dirs=[(trtorch_path + "/lib/")],
1616
libraries=["trtorch"],
1717
include_dirs=[trtorch_path + "/include/trtorch/"])

examples/custom_converters/elu_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import trtorch
33

44
# After "python3 setup install", you should find this .so file under generated "build" directory
5-
torch.ops.load_library('./build/lib.linux-x86_64-3.6/elu_converter.cpython-36m-x86_64-linux-gnu.so')
5+
torch.ops.load_library('./elu_converter/build/lib.linux-x86_64-3.6/elu_converter.cpython-36m-x86_64-linux-gnu.so')
66

77

88
class Elu(torch.nn.Module):

0 commit comments

Comments
 (0)