fix: fix support for CoreML export

This commit is contained in:
Hervé BREDIN committed 2024-09-11 09:12:44 +02:00
1 parent 0ea4c025ee
commit 445a4c69bb
1 file changed
+4 -1
+4 -1
View File
@@ -342,8 +342,11 @@ class XVectorSincNet(Model):
Batch of weights with shape (batch, frame).
"""
outputs = self.sincnet(waveforms).squeeze(dim=1)
# outputs = self.sincnet(waveforms).squeeze(dim=1)
outputs = self.sincnet(waveforms)
for tdnn in self.tdnns:
outputs = tdnn(outputs)
outputs = self.stats_pool(outputs, weights=weights)
return self.embedding(outputs)