Skip to content

Commit 9592167

Browse files
authored
Update to Swift 6.2 (#22)
1 parent ba6fb4d commit 9592167

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: swift-actions/setup-swift@v2
2828
with:
29-
swift-version: "6.0"
29+
swift-version: "6.2"
3030
- run: swift-format lint --strict --recursive swift/Sources/ swift/Tests/
3131

3232
python-test:

swift/Sources/CoreAIObjectDetector/DetectionOutputs.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ struct DetectionOutput: Sendable {
2727
/// Flat bounding-box coordinates, shape `[batch, queryCount, 4]`.
2828
/// Format: `[cx, cy, w, h]` normalized to [0, 1].
2929
let predictedBoxes: [Float]
30-
31-
init(logits: [Float], logitsShape: [Int], predictedBoxes: [Float]) {
32-
self.logits = logits
33-
self.logitsShape = logitsShape
34-
self.predictedBoxes = predictedBoxes
35-
}
3630
}
3731

3832
/// A single detected object: bounding box, class label, and confidence score.

0 commit comments

Comments
 (0)