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

Keep getting a tensorflow.python.framework.errors_impl.InvalidArgumentError #65

Open
egrigokhan opened this issue Sep 8, 2019 · 0 comments

Comments

@egrigokhan
Copy link

egrigokhan commented Sep 8, 2019

Was trying to run inference with the pre-trained model on Google Colab and ran into the following error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation discriminator/discriminator_unit/input_stage/conv/Conv/weights/Initializer/random_uniform/RandomUniform: Could not satisfy explicit device specification '' because the node node discriminator/discriminator_unit/input_stage/conv/Conv/weights/Initializer/random_uniform/RandomUniform (defined at /content/gdrive/My Drive/Portrait_GAN_master/Portrait_GAN/SRGAN-tensorflow/lib/ops.py:40) placed on device Device assignments active during op 'discriminator/discriminator_unit/input_stage/conv/Conv/weights/Initializer/random_uniform/RandomUniform' creation:

I think it's a problem with running on Colab but I'm not sure. I don't really have any alternatives right now so I'd appreciate if you could help out.

Thanks!

@egrigokhan egrigokhan changed the title tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation discriminator/discriminator_unit/input_stage/conv/Conv/weights/Initializer/random_uniform/RandomUniform: Could not satisfy explicit device specification '' because the node node discriminator/discriminator_unit/input_stage/conv/Conv/weights/Initializer/random_uniform/RandomUniform (defined at /content/gdrive/My Drive/Portrait_GAN_master/Portrait_GAN/SRGAN-tensorflow/lib/ops.py:40) placed on device Device assignments active during op 'discriminator/discriminator_unit/input_stage/conv/Conv/weights/Initializer/random_uniform/RandomUniform' creation: Keep getting a tensorflow.python.framework.errors_impl.InvalidArgumentError Sep 8, 2019
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

1 participant