infinite time execution (noob)
Dear community,
I am new in PyCharm (noob) and have problem that I can't solve by myself. I have defined environment with python 3.7 for machine learning. It works fine through all my steps but once I connect notebook to the laptop GPU I stack during model fitting step. Process shows infinite execution without any output in console or error. Help me please to solve it
I will be thankful for any help
请先登录再写评论。
Hi Andrey,
thank you for replay. I think I have conflicting between libraries. When I check GPU it says me "True" ([PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]). Unlikely I found out that I am actually not using GPU or using only 2% of the GPU during calculation. Jupyter web app was able to finish my calculation without using GPU while PyCharm crashed if I apply the following code:
# Disable all GPUS
tf.config.set_visible_devices([], 'GPU')
visible_devices = tf.config.get_visible_devices()
for device in visible_devices:
assert device.device_type != 'GPU'
except:
# Invalid device or cannot modify virtual devices once initialized.
pass
Normally, we can find the problem by comparing the environment between the web app and PyCharm, but if the web app is not using the GPU as well, then the problem is somewhere with the kernel/server configuration. Unfortunately, I'm not sure I can help in such case.