游雁
2024-06-08 310006dd60bf464c0fbeb2b81771eef53539f1c6
funasr/datasets/openai_datasets/datasets.py
@@ -162,7 +162,7 @@
            if badcase_flag:
                continue
            input_ids = torch.tensor(input_ids, dtype=torch.int64)  # [: self.max_token_length]
            attention_mask = torch.tensor([len(input_ids)], dtype=torch.int32)
            attention_mask = torch.tensor([1] * len(input_ids), dtype=torch.int32)
            labels = torch.tensor(labels, dtype=torch.int64)  # [: self.max_token_length]
            fbank = speech[0, :, :]