295f4afbeb2cb52e17af4a7dd41bfbbea8ec4ee5,hypergan/modules/ez_norm.py,EzNorm,__init__,#EzNorm#Any#Any#Any#Any#Any#Any#,6
Before Change
self.beta = EqualLinear(style_size, content_size, lr_mul=0.01)
else:
self.beta = nn.Linear(style_size, content_size)
self.conv = nn.Conv2d(channels, 1, 1, 1, padding = (0, 0))
self.dim = dim
def forward(self, content, style, epsilon=1e-5):
After Change
if dims == 2:
self.conv = nn.Conv1d(channels, 1, 1, 1, padding = 0)
else:
self.conv = nn.Conv2d(channels, 1, 1, 1, padding = 0)
self.dim = dim
def forward(self, content, style, epsilon=1e-5):
N = content.shape[0]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 295f4afbeb2cb52e17af4a7dd41bfbbea8ec4ee5
Time: 2020-07-05
Author: martyn@255bits.com
File Name: hypergan/modules/ez_norm.py
Class Name: EzNorm
Method Name: __init__
Project Name: leftthomas/SRGAN
Commit Name: 8a0becb6d6d3271458faa01d0989c7a83a20b88c
Time: 2017-11-22
Author: leftthomas@qq.com
File Name: model.py
Class Name: Generator
Method Name: __init__
Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 8f8fbb9f6543a4ccaad53923d33647e7138d95ea
Time: 2017-10-15
Author: zhang.hang@rutgers.edu
File Name: encoding/parallel.py
Class Name: ModelDataParallel
Method Name: __init__