bb936f758a92f6b905aa3c3566e64648cc59cd8d,models.py,Mish,forward,#Mish#Any#,129

Before Change


        super().__init__()

    def forward(self, x):
        return x * torch.tanh(F.softplus(x))


class YOLOLayer(nn.Module):
    def __init__(self, anchors, nc, img_size, yolo_index, arc):

After Change


        super().__init__()

    def forward(self, x):
        return x.mul_(F.softplus(x).tanh())


class YOLOLayer(nn.Module):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ultralytics/yolov3
Commit Name: bb936f758a92f6b905aa3c3566e64648cc59cd8d
Time: 2019-11-17
Author: glenn.jocher@ultralytics.com
File Name: models.py
Class Name: Mish
Method Name: forward


Project Name: altosaar/variational-autoencoder
Commit Name: 877bf1b2fc4933ef04ea6bd92ca1a0e28fc583dd
Time: 2018-03-11
Author: altosaar@users.noreply.github.com
File Name: vae.py
Class Name:
Method Name: inference_network


Project Name: arnomoonens/yarll
Commit Name: 0a1844fe38592ba9797e37c920d6a9f745f217c0
Time: 2017-03-30
Author: x-006@hotmail.com
File Name: A2C.py
Class Name: A2CContinuous
Method Name: build_networks