mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
small misspeling and polish fix
This commit is contained in:
@ -63,8 +63,8 @@ impl MultiLevelPerceptron {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[tokio::test]
|
|
||||||
// ANCHOR: book_training_simplified3
|
// ANCHOR: book_training_simplified3
|
||||||
|
#[tokio::test]
|
||||||
async fn simplified() -> anyhow::Result<()> {
|
async fn simplified() -> anyhow::Result<()> {
|
||||||
|
|
||||||
let dev = Device::cuda_if_available(0)?;
|
let dev = Device::cuda_if_available(0)?;
|
||||||
@ -148,7 +148,7 @@ async fn simplified() -> anyhow::Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
|
|
||||||
}
|
}
|
||||||
// ANCHOR_3: book_training_simplified3
|
// ANCHOR_END: book_training_simplified3
|
||||||
|
|
||||||
// ANCHOR: book_training_simplified2
|
// ANCHOR: book_training_simplified2
|
||||||
fn train(m: Dataset, dev: &Device) -> anyhow::Result<MultiLevelPerceptron> {
|
fn train(m: Dataset, dev: &Device) -> anyhow::Result<MultiLevelPerceptron> {
|
||||||
|
Reference in New Issue
Block a user