292ec4cba5d5f6f8beca446fb18b2797ac5ae9d2,official/vision/beta/tasks/video_classification.py,VideoClassificationTask,inference_step,#VideoClassificationTask#,201

Before Change



  def inference_step(self, inputs, model):
    Performs the forward step.
    return model(inputs, training=False)

After Change


    Performs the forward step.
    outputs = model(inputs, training=False)
    if self.task_config.train_data.is_multilabel:
      outputs = tf.math.sigmoid(outputs)
    else:
      outputs = tf.math.softmax(outputs)
    return outputs
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tensorflow/models
Commit Name: 292ec4cba5d5f6f8beca446fb18b2797ac5ae9d2
Time: 2020-11-12
Author: yeqing@google.com
File Name: official/vision/beta/tasks/video_classification.py
Class Name: VideoClassificationTask
Method Name: inference_step


Project Name: leftthomas/SRGAN
Commit Name: 454d4de541947d40d5b0fd8ebd96a2729afe741e
Time: 2017-11-25
Author: leftthomas@qq.com
File Name: srgan.py
Class Name: Discriminator
Method Name: forward


Project Name: milesial/Pytorch-UNet
Commit Name: e3f8ca7b1ac7c5e9694637a81be260e9b48973b9
Time: 2018-11-10
Author: rhtbot@protonmail.com
File Name: unet/unet_model.py
Class Name: UNet
Method Name: forward


Project Name: leftthomas/SRGAN
Commit Name: 3b13f1e6b5f5ac19511cb80f8107d4a1e077beca
Time: 2017-12-03
Author: leftthomas@qq.com
File Name: model.py
Class Name: Discriminator
Method Name: forward