Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/onnx-runtime-cost-model/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ mod tests {
// Compute-heavy: 2e13 FLOP / 2e13 = 1 s dominates the tiny memory term.
let s = KernelStructure {
bytes_moved: 8,
flops: Some(2_000_000_000_000_0),
flops: Some(20_000_000_000_000),
compute_dtype: Some(DataType::Float16),
launch_count: 1,
};
Expand Down
9 changes: 8 additions & 1 deletion crates/onnx-runtime-ep-plugin/src/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ unsafe fn init_host_api(
.then(|| unsafe { (*fallback_api).CreateStatus })
.flatten()
{
let msg = c"EP plugin requires ORT API version 27 but host does not support it. \
let msg = c"EP plugin requires ORT API version 28 but host does not support it. \
Plugin will not load (fail-closed).";
unsafe {
if !out_num.is_null() {
Expand Down Expand Up @@ -149,6 +149,13 @@ fn build_factory(
GetCustomOpDomains: Some(factory_get_custom_op_domains),
InitGraphicsInterop: Some(factory_init_graphics_interop),
DeinitGraphicsInterop: Some(factory_deinit_graphics_interop),
// Optional, new in ORT 1.28. It only matters for EPs that publish
// several compiled variants of one model (e.g. speed- vs
// memory-optimised) and need to rank them. We publish a single
// variant, so leaving this null makes ORT fall back to
// `ValidateCompiledModelCompatibilityInfo`, which we do implement
// and which is the correct answer for one candidate.
SelectBestModelCandidate: None,
},
name_cstr,
vendor_cstr,
Expand Down
4 changes: 1 addition & 3 deletions crates/onnx-runtime-session/src/executor/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ fn gqa_shape_capacity_bound_enabled() -> bool {
.as_deref()
.map(str::trim)
.map(str::to_ascii_lowercase)
.map_or(true, |v| {
!matches!(v.as_str(), "0" | "false" | "off" | "no")
})
.is_none_or(|v| !matches!(v.as_str(), "0" | "false" | "off" | "no"))
})
}

Expand Down
Loading