我想为Tensorflow分配GPU内存的特定部分,但出现错误

时间:2019-02-08 05:21:37

标签: python python-3.x tensorflow

Python交互式会话:

> py
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> config = tf.ConfigProto()
>>> config.gpu_options.per_process_gpu_memory_fraction = 0.4
>>> session = tf.Session(config=config,...)
  File "<stdin>", line 1
  SyntaxError: positional argument follows keyword argument

您能帮我解决这个问题吗?

0 个答案:

没有答案