-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
346ca27
commit 00bd84c
Showing
8 changed files
with
1,152 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ build/ | |
package-lock.json | ||
*.egg-info | ||
*.onnx | ||
__pycache__ | ||
__pycache__ | ||
.build | ||
.swiftpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "swift-argument-parser", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-argument-parser.git", | ||
"state" : { | ||
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41", | ||
"version" : "1.3.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-transformers", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/ashvardanian/swift-transformers", | ||
"state" : { | ||
"revision" : "4060e8ff7c959b89afa7f672cb0a479e87add284" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "UForm", | ||
platforms: [ | ||
// Linux doesn't have to be explicitly listed | ||
.iOS(.v16), // For iOS, version 13 and later | ||
.tvOS(.v16), // For tvOS, version 13 and later | ||
.macOS(.v13), // For macOS, version 10.15 (Catalina) and later | ||
.watchOS(.v6) // For watchOS, version 6 and later | ||
], | ||
products: [ | ||
.library( | ||
name: "UForm", | ||
targets: ["UForm"] | ||
) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/ashvardanian/swift-transformers", revision: "4060e8ff7c959b89afa7f672cb0a479e87add284") | ||
], | ||
targets: [ | ||
.target( | ||
name: "UForm", | ||
dependencies: [ | ||
.product(name: "Transformers", package: "swift-transformers") | ||
], | ||
path: "swift", | ||
exclude: ["EmbeddingsTests.swift"] | ||
), | ||
.testTarget( | ||
name: "UFormTests", | ||
dependencies: ["UForm"], | ||
path: "swift", | ||
sources: ["EmbeddingsTests.swift"] | ||
) | ||
] | ||
) |
Oops, something went wrong.