guillaume-be / rust-bert

Rust native ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)
https://docs.rs/crate/rust-bert
Apache License 2.0
2.67k stars 216 forks source link

don't use subtraction of boolean tensors, use xor #420

Closed njaard closed 1 year ago

njaard commented 1 year ago

This code fails to run without the change