Skip to content

Commit

Permalink
Address nit
Browse files Browse the repository at this point in the history
  • Loading branch information
abheesht17 authored and mattdangerw committed Jul 26, 2023
1 parent 5cfb2c4 commit 74c0c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keras_nlp/layers/modeling/f_net_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def call(self, inputs):

def fourier_transform(input):
# Apply FFT on the input and take the real part.
x = (input, ops.zeros_like(input))
mixing_output = ops.fft2(x)[0]
return mixing_output
real_in, imaginary_in = (input, ops.zeros_like(input))
real_out, _ = ops.fft2((real_in, imaginary_in))
return real_out

def add_and_norm(input1, input2, norm_layer):
return norm_layer(input1 + input2)
Expand Down

0 comments on commit 74c0c27

Please sign in to comment.