似乎我必须能够使用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 一起使用?