File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Sources/PerfectTensorFlow
Tests/PerfectTensorFlowTests Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff line change 1- 1.4.0
1+ 1.4.1
You can’t perform that action at this time.
0 commit comments