transformers
6d02ca4b - Fix issue of canine forward requiring input_ids anyway (#26290)

Commit
2 years ago
Fix issue of canine forward requiring input_ids anyway (#26290) * fix issue of canine forward requires input_ids anyway The `forward` requires `input_ids` for deriving other variables in all cases. Change this to use the given one between `input_ids` and `inputs_embeds` * fix canine forward The current `forward` requires (the shape of) `input_ids` for deriving other variables whenever `input_ids` or `inputs_embeds` is provided. Change this to use the given one instead of `input_ids` all the time. * fix format * fix format
Author
Parents
Loading