Spaces:
Running
on
Zero
Running
on
Zero
alibabasglab
commited on
Update models/av_mossformer2_tse/av_mossformer2.py
Browse files
models/av_mossformer2_tse/av_mossformer2.py
CHANGED
@@ -174,7 +174,7 @@ def overlap_and_add(signal, frame_step):
|
|
174 |
subframe_signal = signal.view(*outer_dimensions, -1, subframe_length)
|
175 |
|
176 |
frame = torch.arange(0, output_subframes).unfold(0, subframes_per_frame, subframe_step)
|
177 |
-
frame = signal.new_tensor(frame).long() # signal may in GPU or CPU
|
178 |
frame = frame.contiguous().view(-1)
|
179 |
|
180 |
result = signal.new_zeros(*outer_dimensions, output_subframes, subframe_length)
|
|
|
174 |
subframe_signal = signal.view(*outer_dimensions, -1, subframe_length)
|
175 |
|
176 |
frame = torch.arange(0, output_subframes).unfold(0, subframes_per_frame, subframe_step)
|
177 |
+
frame = signal.new_tensor(frame).long().cuda() # signal may in GPU or CPU
|
178 |
frame = frame.contiguous().view(-1)
|
179 |
|
180 |
result = signal.new_zeros(*outer_dimensions, output_subframes, subframe_length)
|