File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
examples/custom_converters Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ dir_path = os.path.dirname(os.path.realpath(__file__))
66
66
trtorch_path = os.path.abspath("trtorch")
67
67
68
68
ext_modules = [
69
- cpp_extension.CUDAExtension('elu_converter', ['elu_converter.cpp'],
69
+ cpp_extension.CUDAExtension('elu_converter', ['./csrc/ elu_converter.cpp'],
70
70
library_dirs=[(trtorch_path + "/lib/")],
71
71
libraries=["trtorch"],
72
72
include_dirs=[trtorch_path + "/include/trtorch/"])
@@ -100,7 +100,7 @@ import torch
100
100
import trtorch
101
101
102
102
# 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' )
104
104
105
105
106
106
class Elu (torch .nn .Module ):
Original file line number Diff line number Diff line change 11
11
trtorch_path = os .path .abspath ("/home/bowa/Downloads/trtorch" )
12
12
13
13
ext_modules = [
14
- cpp_extension .CUDAExtension ('elu_converter' , ['elu_converter.cpp' ],
14
+ cpp_extension .CUDAExtension ('elu_converter' , ['./csrc/ elu_converter.cpp' ],
15
15
library_dirs = [(trtorch_path + "/lib/" )],
16
16
libraries = ["trtorch" ],
17
17
include_dirs = [trtorch_path + "/include/trtorch/" ])
Original file line number Diff line number Diff line change 2
2
import trtorch
3
3
4
4
# 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' )
6
6
7
7
8
8
class Elu (torch .nn .Module ):
You can’t perform that action at this time.
0 commit comments