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.51k stars 211 forks source link

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

Closed njaard closed 9 months ago

njaard commented 10 months ago

This code fails to run without the change