Skip to content

Commit

Permalink
Rename default model name to model.onnx.
Browse files Browse the repository at this point in the history
It aligns with openvino backend.

prtest:full
  • Loading branch information
jianjunz committed Feb 1, 2024
1 parent cf65b2e commit 9732234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/wasi-nn/src/backend/winml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl BackendFromDir for WinMLBackend {
path: &Path,
target: ExecutionTarget,
) -> Result<Graph, BackendError> {
let model = read(&path.join("mobilenet.onnx"))?;
let model = read(&path.join("model.onnx"))?;
self.load(&[&model], target)
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/wasi-nn/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn check_winml_artifacts_are_available() -> Result<()> {
fs::create_dir(&artifacts_dir)?;
}
const MODEL_URL: &str="https://github.com/onnx/models/raw/5faef4c33eba0395177850e1e31c4a6a9e634c82/vision/classification/mobilenet/model/mobilenetv2-12.onnx";
for (from, to) in [(MODEL_URL, "mobilenet.onnx")] {
for (from, to) in [(MODEL_URL, "model.onnx")] {
let local_path = artifacts_dir.join(to);
if !local_path.is_file() {
download(&from, &local_path).with_context(|| "unable to retrieve test artifact")?;
Expand Down

0 comments on commit 9732234

Please sign in to comment.