db073909d05ae6f91b7abd8d6251bfa247349447,qucumber/utils/cplx.py,,conjugate,#Any#,226
Before Change
if x.dim() == 3:
z = torch.zeros(2, x.size()[2], x.size()[1], dtype=x.dtype, device=x.device)
z[0] = torch.transpose(x[0], 0, 1)
z[1] = -torch.transpose(x[1], 0, 1)
return z
After Change
:rtype: torch.Tensor
if x.dim() < 3:
return conj(x)
else:
return make_complex(
torch.transpose(real(x), 0, 1), -torch.transpose(imag(x), 0, 1)
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: PIQuIL/QuCumber
Commit Name: db073909d05ae6f91b7abd8d6251bfa247349447
Time: 2019-12-31
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/cplx.py
Class Name:
Method Name: conjugate
Project Name: librosa/librosa
Commit Name: c18f5c4bf4e6ed16fa82264636d440174c59fbca
Time: 2013-11-15
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: ifgram
Project Name: acoular/acoular
Commit Name: a55e697a83b5c5e7129a3fa1f90562cf1630d89d
Time: 2018-12-19
Author: gejohe@web.de
File Name: acoular/fbeamform.py
Class Name: BeamformerCleansc
Method Name: calc