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

Commit 97cb096

Browse files
authored
Minor cleanup: remove unuused definition in EagerExecution.* (#383)
1 parent d150885 commit 97cb096

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Sources/TensorFlow/Bindings/EagerExecution.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ internal struct TFE_Op: TFTensorOperation {
6868
let count = input._tensorHandleCount
6969
var buffer = UnsafeMutableBufferPointer<CTensorHandle>.allocate(capacity: Int(count))
7070
defer { buffer.deallocate() }
71-
let pointer = UnsafeMutablePointer<OpaquePointer?>(buffer.baseAddress)
7271
input._unpackTensorHandles(into: buffer.baseAddress)
7372
for i in 0..<Int(count) {
7473
TFE_OpAddInput(op, buffer[i], status)

Sources/TensorFlow/Bindings/EagerExecution.swift.gyb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ internal struct TFE_Op: TFTensorOperation {
6868
let count = input._tensorHandleCount
6969
var buffer = UnsafeMutableBufferPointer<CTensorHandle>.allocate(capacity: Int(count))
7070
defer { buffer.deallocate() }
71-
let pointer = UnsafeMutablePointer<OpaquePointer?>(buffer.baseAddress)
7271
input._unpackTensorHandles(into: buffer.baseAddress)
7372
for i in 0..<Int(count) {
7473
TFE_OpAddInput(op, buffer[i], status)

0 commit comments

Comments
 (0)