如何在会话配置中使用tf.GPUOptions.Experimental?

时间:2019-06-25 00:27:12

标签: python tensorflow

似乎我必须能够使用tf.GPUOptions.Experimental属性(例如Thread tom = new Thread(ReadKey);)来建立会话。

但是接下来的事情不起作用了:

use_unified_memory

都不是:

cfg = tf.ConfigProto()
cfg.gpu_options.experimental.use_unified_memory = True
#AttributeError: Assignment not allowed (no field "use_unified_memory" in protocol message object).
td.Session(cfg)

如何将 session(config) tf.GPUOptions.Experimental 一起使用?

0 个答案:

没有答案