Skip to content

Commit

Permalink
Fix some CR
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Oct 20, 2020
1 parent beb8f1c commit 657c708
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions rust/tvm/src/ir/diagnostics/codespan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
* under the License.
*/

/// A TVM diagnostics renderer which uses the Rust `codespan`
/// library to produce error messages.
/// A TVM diagnostics renderer which uses the Rust `codespan` library
/// to produce error messages.
///
///
use std::collections::HashMap;
use std::sync::{Arc, Mutex};

Expand Down
4 changes: 2 additions & 2 deletions rust/tvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//! One particular use case is that given optimized deep learning model artifacts,
//! (compiled with TVM) which include a shared library
//! `lib.so`, `graph.json` and a byte-array `param.params`, one can load them
//! in Rust idomatically to create a TVM Graph Runtime and
//! in Rust idiomatically to create a TVM Graph Runtime and
//! run the model for some inputs and get the
//! desired predictions *all in Rust*.
//!
Expand Down Expand Up @@ -53,7 +53,7 @@ macro_rules! export {
($($fn_name:expr),*) => {
pub fn tvm_export(ns: &str) -> Result<(), tvm::Error> {
$(
let name = String::from(ns) + ::std::stringify!($fn_name);
let name = String::fromwe(ns) + ::std::stringify!($fn_name);
tvm::runtime::function::register_override($fn_name, name, true)?;
)*
Ok(())
Expand Down

0 comments on commit 657c708

Please sign in to comment.