mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 20:10:17 +00:00
precision alignment
This commit is contained in:
committed by
FrankLeeeee
parent
62968588d1
commit
9489dc64d8
@@ -308,7 +308,7 @@ class BatchInfo:
|
||||
input_len_list.append(1)
|
||||
|
||||
return torch.tensor(input_list, dtype=torch.long, device=self.device), torch.tensor(
|
||||
input_len_list, dtype=torch.int, device=device
|
||||
input_len_list, dtype=torch.int, device=self.device
|
||||
)
|
||||
|
||||
def get_sequence_lengths(self):
|
||||
|
Reference in New Issue
Block a user