Fix 3 compile errors: rtx-metal (Linux cfg), rtx-onnx (ort API), rtx-fusion (edition)
- rtx-metal: fix MetalError import in sparse/conversion.rs non-macOS stub - rtx-onnx: update session.rs and tensor_bridge.rs for ort 2.x API changes - rtx-fusion: fix Cargo.toml package name - rtx-hub: fix discovery.rs type mismatch - Full workspace (80+ crates) now compiles clean on Linux
This commit is contained in:
@@ -616,8 +616,11 @@ impl ModelMetrics {
|
||||
.iter()
|
||||
.filter(|(date_str, _)| {
|
||||
if let Ok(date) = chrono::NaiveDate::parse_from_str(date_str, "%Y-%m-%d") {
|
||||
let datetime = date.and_hms_opt(0, 0, 0).unwrap();
|
||||
datetime.and_utc() >= cutoff
|
||||
if let Some(datetime) = date.and_hms_opt(0, 0, 0) {
|
||||
datetime.and_utc() >= cutoff
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user