Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit c8ef26e

Browse files
committed
useXLA -> usingXLA
1 parent 530fa9e commit c8ef26e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/TensorFlow/Core/LazyTensorTFFunctionBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class TFFunction {
269269
checkOk(status)
270270
}
271271

272-
func execute(_ inputs: [TFETensorHandle], useXLA: Bool = false) -> [TFETensorHandle] {
272+
func execute(_ inputs: [TFETensorHandle], usingXLA: Bool = false) -> [TFETensorHandle] {
273273
let status: CTFStatus = TF_NewStatus()
274274
defer { TF_DeleteStatus(status) }
275275

@@ -286,7 +286,7 @@ class TFFunction {
286286
checkOk(status)
287287
}
288288

289-
if useXLA {
289+
if usingXLA {
290290
debugLog("Enabling XLA compilation")
291291
TFE_OpSetAttrBool(eagerOp, "_XlaCompile", 1)
292292
}

Sources/TensorFlow/Core/Runtime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ public func _graph<In: TensorGroup, Out: TensorGroup>(
951951
let tffunc = _trace(fn)
952952
return {(input: In) -> Out in
953953
let inputHandles = input._tensorHandles.map { $0._tfeTensorHandle }
954-
let outputHandles = tffunc.execute(inputHandles, useXLA: useXLA)
954+
let outputHandles = tffunc.execute(inputHandles, usingXLA: useXLA)
955955
return Out(_handles: outputHandles)
956956
}
957957
}

0 commit comments

Comments
 (0)