6652350fd030ddacb15e54534ffbe382dc20d6c6,deeppavlov/models/bert/bert_ner.py,BertNerModel,_init_placeholders,#BertNerModel#,138

Before Change


        self.input_masks_ph = tf.placeholder(shape=(None, None),
                                             dtype=tf.int32,
                                             name="token_mask_ph")
        self.token_types_ph = tf.placeholder(shape=(None, None),
                                             dtype=tf.int32,
                                             name="token_types_ph")

        self.y_ph = tf.placeholder(shape=(None, None), dtype=tf.int32, name="y_ph")

        self.learning_rate_ph = tf.placeholder_with_default(0.0, shape=[], name="learning_rate_ph")

After Change


                                        name="token_types_ph")

        self.y_ph = tf.placeholder(shape=(None, None), dtype=tf.int32, name="y_ph")
        self.y_masks_ph = tf.placeholder(shape=(None, None),
                                         dtype=tf.int32,
                                         name="y_mask_ph")

        self.learning_rate_ph = tf.placeholder_with_default(0.0, shape=[], name="learning_rate_ph")
        self.keep_prob_ph = tf.placeholder_with_default(1.0, shape=[], name="keep_prob_ph")
        self.is_train_ph = tf.placeholder_with_default(False, shape=[], name="is_train_ph")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 6652350fd030ddacb15e54534ffbe382dc20d6c6
Time: 2019-05-03
Author: yurakuratov@gmail.com
File Name: deeppavlov/models/bert/bert_ner.py
Class Name: BertNerModel
Method Name: _init_placeholders


Project Name: NervanaSystems/coach
Commit Name: b1e9ea48d86807382c5feca0d18a6bf71f5caa03
Time: 2019-01-03
Author: gouravr@amazon.com
File Name: rl_coach/architectures/tensorflow_components/savers.py
Class Name: GlobalVariableSaver
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 1145fec39ff7f665f7bd352261549f8738de815e
Time: 2016-03-19
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: placeholder