e8f4839bbf04d8f0929138e2494b95b31b0c58f3,ludwig/models/modules/loss_modules.py,SequenceLoss,call,#SequenceLoss#Any#Any#,137
Before Change
dtype=y_pred.dtype)
y_pred = tf.concat([y_pred, pad], axis=1)
// obtain mask from y_true
mask = tf.cast(tf.greater(y_true, 0) , tf.float32)
elif y_pred.shape[1] > y_true.shape[1]:
pad = tf.zeros(
[
After Change
// add one to sequence length to account for EOS token
mask = tf.cast(
tf.sequence_mask(sequence_length_2D(y_true) + 1, y_true.shape[1] ),
dtype=tf.float32
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: uber/ludwig
Commit Name: e8f4839bbf04d8f0929138e2494b95b31b0c58f3
Time: 2020-05-14
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/loss_modules.py
Class Name: SequenceLoss
Method Name: call
Project Name: tryolabs/luminoth
Commit Name: c5a085fb3709aebb1d99a27fce9700961fa8fd83
Time: 2017-09-05
Author: iangtayler@gmail.com
File Name: luminoth/datasets/object_detection_dataset.py
Class Name: ObjectDetectionDataset
Method Name: _augment
Project Name: tensorflow/models
Commit Name: 5cee7220217599ceccb191adf430eb914d148f87
Time: 2020-09-17
Author: tanzheny@google.com
File Name: official/vision/keras_cv/ops/box_matcher.py
Class Name: BoxMatcher
Method Name: __call__