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
tf1.x里可以使用 config = tf.ConfigProto() config.gpu_options.allow_growth = True session = tf.Session(config=config) 来控制显存的使用
但是在tf2.0里,session已经被去除,请问如何控制显存的使用呢?
谢谢!
The text was updated successfully, but these errors were encountered:
按需使用显存: tf.config.gpu.set_per_process_memory_growth(enabled=True)
控制显存占比: tf.config.gpu.set_per_process_memory_fraction(0.4)
Sorry, something went wrong.
No branches or pull requests
tf1.x里可以使用
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
来控制显存的使用
但是在tf2.0里,session已经被去除,请问如何控制显存的使用呢?
谢谢!
The text was updated successfully, but these errors were encountered: