import tensorflow as tf import tflearn # Logical OR operator X = [[0., 0.], [0., 1.], [1., 0.], [1., 1.]] Y = [[0.], [1.], [1.], [1.]] # Graph definition with tf.Graph().as_default(): g = tflearn.input_data(shape=[None, 2]) g = tflearn.fully_connected(g, 128, activation='linear') g = tflearn.fully_connected(g, 128, activation='linear') g = tflearn.fully_connected(g, 1, activation='sigmoid') g = tf