MCPcopy
hub / github.com/Audio-AGI/AudioSep / batch_to_list

Method batch_to_list

models/clap_encoder.py:44–48  ·  view source on GitHub ↗
(self, batch)

Source from the content-addressed store, hash-verified

42 self.encoder_type = 'CLAP'
43
44 def batch_to_list(self, batch):
45 ret = []
46 for i in range(batch.size(0)):
47 ret.append(batch[i])
48 return ret
49
50 def _get_audio_embed(self, batch):
51 # batch: [B, samples]

Callers 1

_get_audio_embedMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected