-
Notifications
You must be signed in to change notification settings - Fork 77
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
GPU problem #16
Comments
Did you solve this problem? |
I solved it like this: Add a line: and replace the session definition: |
Thanks!!That helps a lot!
…------------------ 原始邮件 ------------------
发件人: "wzm2256"<[email protected]>;
发送时间: 2019年9月17日(星期二) 下午3:14
收件人: "takerum/vat_tf"<[email protected]>;
抄送: "Anooyman"<[email protected]>;"Author"<[email protected]>;
主题: Re: [takerum/vat_tf] GPU problem (#16)
I solved it like this:
Add a line:
config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=False)
and replace the session definition:
with sv.managed_session() as sess:
to be:
with sv.managed_session(config=config) as sess:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi takerum,
Thanks for your work. In your code, it seems that you use the CPU to deal with the dataset and then use GPU to build the training graph. However, when I ran this program, here comes an issue that the program can not locate the CPU and GPU. Is there something I missed?
The text was updated successfully, but these errors were encountered: