import tensorflow as tf

            opt = tf.train.AdagradOptimizer(1.0)
        self.opt = opt
        self.sess = None
        self.train_step = None
        self.post_step = None
        self.graph = tf.Graph()
        with self.graph.as_default():
            self.head_input = tf.placeholder(tf.int32, shape=[None])
            self.rel_input = tf.placeholder(tf.int32, shape=[None])
            self.tail_input = tf.placeholder(tf.int32, shape=[None])
