Skip to content
Snippets Groups Projects
Commit 5d71672a authored by chinyun_yu_joey's avatar chinyun_yu_joey
Browse files

use list

parent d46c2624
No related merge requests found
......@@ -94,7 +94,7 @@ def separate(
frames = 2584
min_frames = 516
masked_tf_rep = []
chunks = mag.split(frames, dim=-1)
chunks = list(mag.split(frames, dim=-1))
if len(chunks) > 1 and chunks[-1].shape[-1] < min_frames:
chunks[-2:] = torch.cat(chunks[-2:], -1).chunk(2, -1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment