Skip to content

Commit

Permalink
Clippy fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Oct 7, 2024
1 parent f163429 commit 10b9d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions candle-transformers/src/models/bert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ impl BertLMPredictionHead {

impl Module for BertLMPredictionHead {
fn forward(&self, hidden_states: &Tensor) -> Result<Tensor> {
Ok(self
self
.decoder
.forward(&self.transform.forward(hidden_states)?)?)
.forward(&self.transform.forward(hidden_states)?)
}
}

Expand Down

0 comments on commit 10b9d3e

Please sign in to comment.