Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsanbear committed Apr 3, 2024
1 parent 7b56d82 commit 4628f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bit_transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl BitTransformer {
#[instrument]
pub fn forward(&self, x: &Tensor) -> Result<Tensor> {
// Run the embedding layer
let x_embed = self.embedding.forward(&x)?;
let x_embed = self.embedding.forward(x)?;

// Fold each block forward
let mut x = x_embed.clone();
Expand Down
2 changes: 1 addition & 1 deletion src/training.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn run(args: &TrainingCmd, common_args: &Args) -> Result<()> {
let vb = VarBuilder::from_varmap(&varmap, dtype, &device);

// Get the datasets
let dataset = { Dataset::new(args.dataset.to_string())? };
let dataset = { Dataset::new(&args.dataset)? };

// Setup the model
let config = Config {
Expand Down

0 comments on commit 4628f85

Please sign in to comment.