(self)
Adds placeholder variables to tensorflow computational graph.
            self.ph_input: shape(batch_size, sent_len)
            self.ph_label: shape(batch_size, class_num)
            self.ph_seqLen : shape(batch_size)
            self.ph_drop: scalar, dropout(keep rate)
Adds placeholder variables to tensorflow computational graph.
            self.ph_input: shape(batch_size, sent_len)
            self.ph_label: shape(batch_size, class_num)
            self.ph_seqLen : shape(batch_size)
            self.ph_drop: scalar, dropout(keep rate)
Adds placeholder variables to tensorflow computational graph . self . ph_input : shape ( batch_size sent_len ) self . ph_label : shape ( batch_size class_num ) self . ph_seqLen : shape ( batch_size ) self . ph_drop : scalar dropout ( keep rate )
def add_placeholders(self):
        """
        Adds placeholder variables to tensorflow computational graph.
            self.ph_input: shape(batch_size, sent_len)
            self.ph_label: shape(batch_size, class_num)
            self.ph_seqLen : shape(batch_size)
            self.ph_drop: scalar, dropout(keep rate)

        """
        self.ph_input = tf.placeholder(tf.int32, (None, self.config.num_steps))
        self.ph_label = tf.placeholder(tf.int32, (None, self.config.class_num))
        self.ph_seqLen = tf.placeholder(tf.int32, (None,))
        self.ph_drop = tf.placeholder(tf.float32)
def add_placeholders ( self ) : self . ph_input = tf . placeholder ( tf . int32 , ( None , self . config . num_steps ) ) self . ph_label = tf . placeholder ( tf . int32 , ( None , self . config . class_num ) ) self . ph_seqLen = tf . placeholder ( tf . int32 , ( None , ) ) self . ph_drop = tf . placeholder ( tf . float32 )