Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
5b019098
Commit
5b019098
authored
Aug 11, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle error in find_library
parent
00f83c13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
examples/DeepQNetwork/README.md
examples/DeepQNetwork/README.md
+1
-1
tensorpack/utils/utils.py
tensorpack/utils/utils.py
+14
-9
No files found.
examples/DeepQNetwork/README.md
View file @
5b019098
...
@@ -18,7 +18,7 @@ used a modified version where each batch contains transitions from different sim
...
@@ -18,7 +18,7 @@ used a modified version where each batch contains transitions from different sim
## Usage:
## Usage:
### With ALE (paper's setting):
### With ALE (paper's setting):
Install
[
ALE
](
https://github.com/mgbellemare/Arcade-Learning-Environment
)
and
gym
.
Install
[
ALE
](
https://github.com/mgbellemare/Arcade-Learning-Environment
)
and
`gym[atari]`
.
Download an
[
atari rom
](
https://github.com/openai/atari-py/tree/gdb/atari_py/atari_roms
)
, e.g.:
Download an
[
atari rom
](
https://github.com/openai/atari-py/tree/gdb/atari_py/atari_roms
)
, e.g.:
```
```
...
...
tensorpack/utils/utils.py
View file @
5b019098
...
@@ -251,15 +251,20 @@ def find_library_full_path(name):
...
@@ -251,15 +251,20 @@ def find_library_full_path(name):
procmap
=
os
.
path
.
join
(
'/proc'
,
str
(
os
.
getpid
()),
'maps'
)
procmap
=
os
.
path
.
join
(
'/proc'
,
str
(
os
.
getpid
()),
'maps'
)
if
not
os
.
path
.
isfile
(
procmap
):
if
not
os
.
path
.
isfile
(
procmap
):
return
None
return
None
with
open
(
procmap
,
'r'
)
as
f
:
try
:
for
line
in
f
:
with
open
(
procmap
,
'r'
)
as
f
:
line
=
line
.
strip
()
.
split
(
' '
)
for
line
in
f
:
sofile
=
line
[
-
1
]
line
=
line
.
strip
()
.
split
(
' '
)
sofile
=
line
[
-
1
]
basename
=
os
.
path
.
basename
(
sofile
)
if
'lib'
+
name
+
'.so'
in
basename
:
basename
=
os
.
path
.
basename
(
sofile
)
if
os
.
path
.
isfile
(
sofile
):
if
'lib'
+
name
+
'.so'
in
basename
:
return
os
.
path
.
realpath
(
sofile
)
if
os
.
path
.
isfile
(
sofile
):
return
os
.
path
.
realpath
(
sofile
)
except
PermissionError
:
# can fail in certain environment (e.g. chroot)
# if the pids are incorrectly mapped
pass
# The following two methods come from https://github.com/python/cpython/blob/master/Lib/ctypes/util.py
# The following two methods come from https://github.com/python/cpython/blob/master/Lib/ctypes/util.py
def
_use_ld
(
name
):
def
_use_ld
(
name
):
...
...
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