mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 03:54:56 +00:00
Typos and format and CD only when PR lands.
This commit is contained in:
@ -67,8 +67,8 @@ let bias = weights.get("bert.encoder.layer.0.attention.self.query.bias").unwrap(
|
||||
|
||||
let linear = Linear::new(weight.clone(), Some(bias.clone()));
|
||||
|
||||
let input_ids = Tensor::zeros((3, 7680), DType::F32, &Device::Cpu).unwrap();
|
||||
let output = linear.forward(&input_ids);
|
||||
let input_ids = Tensor::zeros((3, 768), DType::F32, &Device::Cpu).unwrap();
|
||||
let output = linear.forward(&input_ids).unwrap();
|
||||
```
|
||||
|
||||
For a full reference, you can check out the full [bert](https://github.com/LaurentMazare/candle/tree/main/candle-examples/examples/bert) example.
|
||||
|
Reference in New Issue
Block a user