Skip to content

Commit 0541956

Browse files
committed
Upgrading to TensorFlow 1.4.1
1 parent e4648ed commit 0541956

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Sources/PerfectTensorFlow/APILoader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ public class TFLib {
967967
throw Panic.DLL(reason: "Version \(ver) is obsolete and out of support.")
968968
}
969969

970-
if ver >= "1.4.1" {
970+
if ver >= "1.4.2" {
971971
ImportGraphDefOptionsSetUniquifyNames = try LoadFunction(lib, "TF_ImportGraphDefOptionsSetUniquifyNames")
972972
ImportGraphDefOptionsSetUniquifyPrefix = try LoadFunction(lib, "TF_ImportGraphDefOptionsSetUniquifyPrefix")
973973
}

Tests/PerfectTensorFlowTests/PerfectTensorFlowTests.swift

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,20 @@ class PerfectTensorFlowTests: XCTestCase {
160160
("testBasicImproved",testBasicImproved),
161161
("testDevices", testDevices),
162162
("testEventAndSummary", testEventAndSummary),
163-
("testFunctionBasic", testFunctionBasic)
163+
("testFunctionBasic", testFunctionBasic),
164+
("testUniquify", testUniquify)
164165
]
165166

167+
func testUniquify() {
168+
do {
169+
let o = try TF.GraphDefOptions()
170+
o.setNames(uniquified: true)
171+
o.setPrefix(uniquified: true)
172+
} catch {
173+
XCTFail("\(error)")
174+
}
175+
}
176+
166177
func testFunctionBasic() {
167178
do {
168179
let funcName = "MyFunc"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

0 commit comments

Comments
 (0)