We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
设置显存按需使用的 code 报错。
gpus = tf.config.experimental.list_physical_devices(device_type='GPU') for gpu in gpus: tf.config.experimental.set_memory_growth(device=gpu, True)
显示 SyntaxError: positional arguments follows keyword argument
第三行需要修改一下才能运行
tf.config.experimental.set_memory_growth(gpu, True) 或 tf.config.experimental.set_memory_growth(device=gpu, enable=True)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
设置显存按需使用的 code 报错。
显示 SyntaxError: positional arguments follows keyword argument
第三行需要修改一下才能运行
The text was updated successfully, but these errors were encountered: