Skip to content

Commit

Permalink
re-enable rust example
Browse files Browse the repository at this point in the history
  • Loading branch information
mshr-h committed Aug 23, 2024
1 parent 1de4bb9 commit 1f9aaee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions rust/tvm/examples/resnet/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ use anyhow::{Context, Result};
use std::{io::Write, path::Path, process::Command};

fn main() -> Result<()> {
// Currently disabled, as it depends on the no-longer-supported
// mxnet repo to download resnet.

/*
let out_dir = std::env::var("CARGO_MANIFEST_DIR")?;
let python_script = concat!(env!("CARGO_MANIFEST_DIR"), "/src/build_resnet.py");
let synset_txt = concat!(env!("CARGO_MANIFEST_DIR"), "/synset.txt");
Expand Down Expand Up @@ -57,7 +53,5 @@ fn main() -> Result<()> {
);
println!("cargo:rustc-link-search=native={}", out_dir);

*/

Ok(())
}
5 changes: 0 additions & 5 deletions rust/tvm/examples/resnet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ use tvm_rt::graph_rt::GraphRt;
use tvm_rt::*;

fn main() -> anyhow::Result<()> {
// Currently disabled, as it depends on the no-longer-supported
// mxnet repo to download resnet.

/*
let dev = Device::cpu(0);
println!("{}", concat!(env!("CARGO_MANIFEST_DIR"), "/cat.png"));

Expand Down Expand Up @@ -138,7 +134,6 @@ fn main() -> anyhow::Result<()> {
"input image belongs to the class `{}` with probability {}",
label, max_prob
);
*/

Ok(())
}

0 comments on commit 1f9aaee

Please sign in to comment.