 
             // Calculate the addresses of all the strings within our single buffer, and then call
             // TF_InitMain.
-            flattenedStringBytes.withUnsafeMutableBufferPointer { flattenedStringBytesBuffer in
+            flattenedStringBytes.withUnsafeMutableBufferPointer { buffer in
                 var stringAddrs: [UnsafeMutablePointer<Int8>?] = []
-                var currentStringAddr = flattenedStringBytesBuffer.baseAddress
+                var currentStringAddr = buffer.baseAddress
                     .map(UnsafeMutablePointer.init)
                 for length in lengths {
                     stringAddrs.append(currentStringAddr)

        // Initialize the TF runtime exactly once. Only affects local execution
        // (when _RuntimeConfig.tensorFlowServer is set to "").
        if !_RuntimeConfig.tensorFlowRuntimeInitialized {
            var args = ["dummyProgramName"]
            if _RuntimeConfig.printsDebugLog {
                args.append("--alsologtostderr")

                }

                stringAddrs.withUnsafeMutableBufferPointer { stringAddrsBuffer in
                    var cArgsCount = Int32(args.count)
                    var cArgs = stringAddrsBuffer.baseAddress.map(UnsafeMutablePointer.init)
                    TF_InitMain(nil, &cArgsCount, &cArgs)
                }
            }
            _RuntimeConfig.tensorFlowRuntimeInitialized = true
