From 059a988c7661c3d0596df6f9764241ab397c10f3 Mon Sep 17 00:00:00 2001 From: sukru tikves Date: Thu, 11 Jun 2026 09:13:03 -0700 Subject: [PATCH] Update to Swift 6.2 --- .github/workflows/ci.yml | 2 +- swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3747398..bdfaea3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v4 - uses: swift-actions/setup-swift@v2 with: - swift-version: "6.0" + swift-version: "6.2" - run: swift-format lint --strict --recursive swift/Sources/ swift/Tests/ python-test: diff --git a/swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift b/swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift index 8f50c074..25f3a314 100644 --- a/swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift +++ b/swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift @@ -27,12 +27,6 @@ struct DetectionOutput: Sendable { /// Flat bounding-box coordinates, shape `[batch, queryCount, 4]`. /// Format: `[cx, cy, w, h]` normalized to [0, 1]. let predictedBoxes: [Float] - - init(logits: [Float], logitsShape: [Int], predictedBoxes: [Float]) { - self.logits = logits - self.logitsShape = logitsShape - self.predictedBoxes = predictedBoxes - } } /// A single detected object: bounding box, class label, and confidence score.