Skip to content

Commit a4e752c

Browse files
author
Sebastien M. Popoff
committed
merge conflict #11
2 parents 2ab6616 + b091a31 commit a4e752c

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

complexPyTorch/complexFunctions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ def complex_normalize(input):
4040
def complex_relu(input):
4141
return relu(input.real).type(torch.complex64)+1j*relu(input.imag).type(torch.complex64)
4242

43+
<<<<<<< HEAD
44+
=======
45+
def complex_relu(input):
46+
return relu(input.real).type(torch.complex64)+1j*relu(input.imag).type(torch.complex64)
47+
48+
>>>>>>> octaveguinebretiere-master
4349
def complex_sigmoid(input):
4450
return sigmoid(input.real).type(torch.complex64)+1j*sigmoid(input.imag).type(torch.complex64)
4551

complexPyTorch/complexLayers.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,21 @@
1313
from torch.nn import Module, Parameter, init
1414
from torch.nn import Conv2d, Linear, BatchNorm1d, BatchNorm2d
1515
from torch.nn import ConvTranspose2d
16+
<<<<<<< HEAD:complexPyTorch/complexLayers.py
1617
from .complexFunctions import complex_relu, complex_max_pool2d, complex_avg_pool2d
1718
from .complexFunctions import complex_dropout, complex_dropout2d
19+
=======
20+
from complexFunctions import (
21+
complex_relu,
22+
complex_tanh,
23+
complex_sigmoid,
24+
complex_max_pool2d,
25+
complex_avg_pool2d,
26+
complex_dropout,
27+
complex_dropout2d,
28+
complex_opposite,
29+
)
30+
>>>>>>> d00e50c5d93386dd85b363a39c24cf783b7914aa:complexLayers.py
1831

1932
def apply_complex(fr, fi, input, dtype = torch.complex64):
2033
return (fr(input.real)-fi(input.imag)).type(dtype) \

0 commit comments

Comments
 (0)