Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Pytorch-Encoding
Commits
01946d40
Commit
01946d40
authored
Nov 21, 2017
by
Hang Zhang
Browse files
Merge branch 'master' of
https://github.com/zhanghang1989/PyTorch-Encoding
parents
fd2c8c76
d9d7b1f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
build.py
build.py
+2
-4
No files found.
build.py
View file @
01946d40
...
...
@@ -25,13 +25,11 @@ subprocess.check_call(clean_cmd)
# build CUDA library
os
.
environ
[
'TORCH_BUILD_DIR'
]
=
lib_path
if
platform
.
system
()
==
'Darwin'
:
os
.
environ
[
'TH_LIBRARIES'
]
=
os
.
path
.
join
(
lib_path
,
'libTH.1.dylib'
)
os
.
environ
[
'THC_LIBRARIES'
]
=
os
.
path
.
join
(
lib_path
,
'libTHC.1.dylib'
)
os
.
environ
[
'TH_LIBRARIES'
]
=
os
.
path
.
join
(
lib_path
,
'libATen.1.dylib'
)
ENCODING_LIB
=
os
.
path
.
join
(
cwd
,
'encoding/lib/libENCODING.dylib'
)
else
:
os
.
environ
[
'TH_LIBRARIES'
]
=
os
.
path
.
join
(
lib_path
,
'libTH.so.1'
)
os
.
environ
[
'THC_LIBRARIES'
]
=
os
.
path
.
join
(
lib_path
,
'libTHC.so.1'
)
os
.
environ
[
'TH_LIBRARIES'
]
=
os
.
path
.
join
(
lib_path
,
'libATen.so.1'
)
ENCODING_LIB
=
os
.
path
.
join
(
cwd
,
'encoding/lib/libENCODING.so'
)
build_all_cmd
=
[
'bash'
,
'encoding/make.sh'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment