ea2a0bfb9f60f7e03a3ed25244622e0d90b275a5,opennmt/inputters/record_inputter.py,SequenceRecordInputter,make_features,#SequenceRecordInputter#Any#Any#Any#,44

Before Change


        "shape": tf_var_len_feature(tf.int64),
        "values": tf_var_len_feature(tf.float32)
    })
    values = example["values"].values
    shape = tf.cast(example["shape"].values, tf.int32)
    tensor = tf.reshape(values, shape)
    tensor.set_shape([None, self.input_depth])
    features["length"] = tf.shape(tensor)[0]
    features["tensor"] = tf.cast(tensor, self.dtype)
    return features

After Change


      return features
    element = tf.io.parse_single_sequence_example(element, sequence_features={
        "values": tf.io.FixedLenSequenceFeature([self.input_depth], dtype=tf.float32)})
    tensor = element[1]["values"]
    features["length"] = tf.shape(tensor)[0]
    features["tensor"] = tf.cast(tensor, self.dtype)
    return features
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: OpenNMT/OpenNMT-tf
Commit Name: ea2a0bfb9f60f7e03a3ed25244622e0d90b275a5
Time: 2019-03-27
Author: guillaume.klein@systrangroup.com
File Name: opennmt/inputters/record_inputter.py
Class Name: SequenceRecordInputter
Method Name: make_features


Project Name: IndicoDataSolutions/finetune
Commit Name: 6b5813458e9fb1da4a99c2bafc335526955c3dc5
Time: 2020-01-10
Author: benlt@hotmail.co.uk
File Name: finetune/nn/target_blocks.py
Class Name:
Method Name: sequence_labeler


Project Name: dhlab-epfl/dhSegment
Commit Name: 69f6cb1e25e014952b409cd906e319415c43e1d0
Time: 2017-10-23
Author: seg.benoit@gmail.com
File Name: doc_seg/utils.py
Class Name:
Method Name: multiclass_to_label_image


Project Name: deepmind/sonnet
Commit Name: bd030b15bc9cab6968068d07321c3b387db5af64
Time: 2019-07-08
Author: tomhennigan@google.com
File Name: sonnet/src/reshape.py
Class Name:
Method Name: _batch_reshape