This repository was archived by the owner on Jul 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Sources/TensorFlow/Bindings Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ internal struct TFE_Op: TFTensorOperation {
66
66
@inlinable @inline ( __always)
67
67
internal func addInputList< T: TensorArrayProtocol > ( _ input: T ) {
68
68
let count = input. _tensorHandleCount
69
- var buffer = UnsafeMutableBufferPointer< CTensorHandle> . allocate( capacity: Int ( count) )
69
+ let buffer = UnsafeMutableBufferPointer< CTensorHandle> . allocate( capacity: Int ( count) )
70
70
defer { buffer. deallocate ( ) }
71
71
input. _unpackTensorHandles ( into: buffer. baseAddress)
72
72
for i in 0 ..< Int ( count) {
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ internal struct TFE_Op: TFTensorOperation {
66
66
@inlinable @inline(__always)
67
67
internal func addInputList<T: TensorArrayProtocol>(_ input: T) {
68
68
let count = input._tensorHandleCount
69
- var buffer = UnsafeMutableBufferPointer<CTensorHandle>.allocate(capacity: Int(count))
69
+ let buffer = UnsafeMutableBufferPointer<CTensorHandle>.allocate(capacity: Int(count))
70
70
defer { buffer.deallocate() }
71
71
input._unpackTensorHandles(into: buffer.baseAddress)
72
72
for i in 0..<Int(count) {
You can’t perform that action at this time.
0 commit comments