From fe4b01bba0ec4492540ec8162522e90b04d4e0d2 Mon Sep 17 00:00:00 2001 From: Barak Ugav Date: Sat, 3 Aug 2024 16:48:26 +0300 Subject: [PATCH] Fix lib.rs code block type (#13) * Fix lib.rs code block type * Version 0.1.0 --- Cargo.toml | 4 ++-- executorch-sys/Cargo.toml | 2 +- src/lib.rs | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 28e10d7..48ea903 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ [package] name = "executorch" -version = "0.1.0-rc.2" +version = "0.1.0" authors = ["Barak Ugav "] edition = "2021" description = "Rust bindings for ExecuTorch - On-device AI across mobile, embedded and edge for PyTorch" @@ -34,7 +34,7 @@ include = ["Cargo.toml", "src/", "README.md", "LICENSE"] features = ["data-loader", "module"] [dependencies] -executorch-sys = { path = "executorch-sys", version = "0.1.0-rc.2" } +executorch-sys = { path = "executorch-sys", version = "0.1.0" } ndarray = "0.15.6" log = "0.4.22" diff --git a/executorch-sys/Cargo.toml b/executorch-sys/Cargo.toml index 3a3e62c..e70a926 100644 --- a/executorch-sys/Cargo.toml +++ b/executorch-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "executorch-sys" -version = "0.1.0-rc.2" +version = "0.1.0" authors = ["Barak Ugav "] edition = "2021" description = "Unsafe Rust bindings for ExecuTorch - On-device AI across mobile, embedded and edge for PyTorch" diff --git a/src/lib.rs b/src/lib.rs index 67b5b1d..9caafc5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ //! The following example create a simple model in Python, exports it, and then executes it in Rust: //! //! Create a model in `Python` and export it: -//! ```python +//! ``` //! import torch //! from executorch.exir import to_edge //! from torch.export import export @@ -32,7 +32,8 @@ //! ``` //! //! Execute the model in Rust: -//! ```rustuse executorch::evalue::{EValue, Tag}; +//! ```rust +//! rustuse executorch::evalue::{EValue, Tag}; //! use executorch::module::Module; //! use executorch::tensor::{Tensor, TensorImpl}; //! use ndarray::array;