import tensorflow as tf


def get_tensorflow_session():
    gpu_options = tf.GPUOptions(allow_growth=True)
    config_proto = tf.ConfigProto(log_device_placement=False,
        allow_soft_placement=True, gpu_options=gpu_options)
    return tf.Session(config=config_proto)

f5d51322fccaa7c78f78e04c486bb6570b73859c
<mask token>

<mask token>


def get_tensorflow_session():
    gpu_options = tf.GPUOptions(allow_growth=True)
    config_proto = tf.ConfigProto(log_device_placement=False,
        allow_soft_placement=True, gpu_options=gpu_options)
    return tf.Session(config=config_proto)

import tensorflow as tf


def get_tensorflow_session():
    gpu_options = tf.GPUOptions(allow_growth=True)
    config_proto = tf.ConfigProto(log_device_placement=False,
        allow_soft_placement=True, gpu_options=gpu_options)
    return tf.Session(config=config_proto)
