transformers
66875ac0 - Specify dtype=torch.bool to avoid xla error (#31191)

Commit
1 year ago
Specify dtype=torch.bool to avoid xla error (#31191) The StoppingCriteriaList allocates is_done without specifying dtype=torch.bool. On XLA this allocates a float tensor and causes a failure on the following line: is_done = is_done | criteria(input_ids, scores, **kwargs) by attempting to OR float with bool.
Author
Parents
Loading