Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors on training #14

Open
YujiaoHu opened this issue Jun 7, 2019 · 6 comments
Open

errors on training #14

YujiaoHu opened this issue Jun 7, 2019 · 6 comments

Comments

@YujiaoHu
Copy link

YujiaoHu commented Jun 7, 2019

when I run ./run_nstep_dqn.sh in s2v_tsp2d
it returns
image

and some problems also happen when I run ./run_nstep_dqn in s2v_mvc
image

can you help me ??

@Hanjun-Dai
Copy link
Owner

Hi there,

Have you built the .so file successfully?

@YujiaoHu
Copy link
Author

YujiaoHu commented Jun 8, 2019

I tried again, and I built the .so successfully. I am sorry I forget to build it in the tsp2d. But the second problem still exists.
File "/MTSP/DQN/code/s2v_tsp2d/tsp2d_lib/tsp2d_lib.py", line 17, in init
arr[:] = args
TypeError: bytes or integer address expected instead of str instance

I run it in the nvidia-docker, and use cuda8.0 and nvcc8.0

@Hanjun-Dai
Copy link
Owner

which version of python are you using? I'm using py2 in this repo

@YujiaoHu
Copy link
Author

YujiaoHu commented Jun 9, 2019

I used python3 previously, and now I change to py2. The error is solved. Thank you. I can run your code, now.

@no-wings
Copy link

hi,i also meet the problem ,i want to know how to built .so file

@Hanjun-Dai
Copy link
Owner

go to clib folder under each experiment, and copy the Makefile.example to Makefile (with necessary adaptation to your system config). After that simply run make command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants