imalsogreg commented on a change in pull request #6563:
URL: https://github.com/apache/incubator-tvm/pull/6563#discussion_r497193474
##########
File path: rust/tvm/examples/resnet/build.rs
##########
@@ -17,16 +17,20 @@
* under the License.
*/
-use anyhow::{Context, Result};
-use std::{path::Path, process::Command};
+use std::{io::Write, path::Path, process::Command};
-fn main() -> Result<()> {
+fn main() {
let output = Command::new("python3")
.arg(concat!(env!("CARGO_MANIFEST_DIR"), "/src/build_resnet.py"))
.arg(&format!("--build-dir={}", env!("CARGO_MANIFEST_DIR")))
.output()
- .with_context(|| anyhow::anyhow!("failed to run python3"))?;
Review comment:
Is it intentional here that we're reverting the `anyhow` changes from
#6401?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]