diff --git a/candle-wasm-examples/llama2-c/src/bin/m.rs b/candle-wasm-examples/llama2-c/src/bin/m.rs index 62b1bdf7..6628ab7e 100644 --- a/candle-wasm-examples/llama2-c/src/bin/m.rs +++ b/candle-wasm-examples/llama2-c/src/bin/m.rs @@ -58,10 +58,10 @@ impl Model { Err(e) => Err(JsError::new(&e.to_string())), } } + #[wasm_bindgen] pub fn get_seq_len(&mut self) -> usize { - let seq_len = self.inner.config.seq_len; - seq_len + self.inner.config.seq_len } #[wasm_bindgen]