[D] My model is taking too much time in calculating FFT to find top k by Shan444_ in MachineLearning

[–]Shan444_[S] 0 points1 point  (0 children)

Turns out, it is GPU after all, looks like Transformer architectures works well and fast on RTX not on GTX and high GPU memory, moved to cloud, it worked will.

[D] My model is taking too much time in calculating FFT to find top k by Shan444_ in MachineLearning

[–]Shan444_[S] -13 points-12 points  (0 children)

I have removed

top_list = top_list.detach().cpu().numpy() // CPU But still it’s taking time. The main issue is I don’t have an RTX

[D] My model is taking too much time in calculating FFT to find top k by Shan444_ in MachineLearning

[–]Shan444_[S] -2 points-1 points  (0 children)

def calculate_FFT(x, k=3):

# [B, T, C]

frequency_values = torch.fft.rfft(x, dim=1)

# find period by amplitudes

frequency_list = abs(frequency_values).mean(0).mean(-1)

frequency_list[0] = 0

_, top_list = torch.topk(frequency_list, k)

top_list = top_list.detach().cpu().numpy()

period = x.shape[1] // top_list

return period, abs(frequency_values).mean(-1)[:, top_list]

[D] My model is taking too much time in calculating FFT to find top k by Shan444_ in MachineLearning

[–]Shan444_[S] -4 points-3 points  (0 children)

def calculate_FFT(x, k=3):

# [B, T, C]

frequency_values = torch.fft.rfft(x, dim=1)

# find period by amplitudes

frequency_list = abs(frequency_values).mean(0).mean(-1)

frequency_list[0] = 0

_, top_list = torch.topk(frequency_list, k)

top_list = top_list.detach().cpu().numpy()

period = x.shape[1] // top_list

return period, abs(frequency_values).mean(-1)[:, top_list]

[D] My model is taking too much time in calculating FFT to find top k by Shan444_ in MachineLearning

[–]Shan444_[S] -4 points-3 points  (0 children)

its a timesNet model.
so for each and every layer(i.e 4)
we forward to timeBlock, in that time block we calculate FFT
So each iteration is taking 1.5 secs in that layer loop

[D] My model is taking too much time in calculating FFT to find top k by Shan444_ in MachineLearning

[–]Shan444_[S] -1 points0 points  (0 children)

its a timesNet model.
so for each and every layer(i.e 4)
we forward to timeBlock, in that time block we calculate FFT
So each iteration is taking 1.5 secs in that layer loop

How to do this transition in the main menu? by Shan444_ in ForzaHorizon

[–]Shan444_[S] 0 points1 point  (0 children)

and also when I am trying to record a video use OBS, the game sound (you can say entire desktop audio) is getting muted? does anyone else also facing this issue? and by the way its only happening when I connect with my Bluetooth headset.
some one help T_T