mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
fix(web): dynamic dimensions in metadata (#521)
Fixes the following runtime panic: ``` backends/web/binding/session.rs:151:14: called `Result::unwrap()` on an `Err` value: Error(JsValue(Error: data did not match any variant of untagged enum ShapeElement Error: data did not match any variant of untagged enum ShapeElement ```
This commit is contained in:
@@ -211,7 +211,7 @@ impl InferenceSession {
|
||||
#[serde(untagged)]
|
||||
pub enum ShapeElement {
|
||||
Named(String),
|
||||
Value(i32)
|
||||
Value(i64)
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user