Skip to content

Commit

Permalink
return numpy array
Browse files Browse the repository at this point in the history
Signed-off-by: monica-sekoyan <msekoyan@nvidia.com>
  • Loading branch information
monica-sekoyan committed May 29, 2024
1 parent 37f0b8c commit 418e1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/asr/models/label_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def verify_speakers_batch(self, manifest_filepath1, manifest_filepath2, threshol
# Decision
decision = similarity_scores >= threshold

return decision
return decision.cpu().numpy()

@torch.no_grad()
def batch_inference(self, manifest_filepath, batch_size=32, sample_rate=16000, device='cuda'):
Expand Down

0 comments on commit 418e1f0

Please sign in to comment.