The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Neuron, reference main (1d8679), with Swift 6.1 for macOS (SPM) on 27 Jun 2025 17:51:38 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wvabrinskas/Neuron.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wvabrinskas/Neuron
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1d8679f Develop (#105)
Cloned https://github.com/wvabrinskas/Neuron.git
Revision (git rev-parse @):
1d8679f687058618fec4ee778f6e8a37a06f876b
SUCCESS checkout https://github.com/wvabrinskas/Neuron.git at main
Fetching https://github.com/wvabrinskas/Logger.git
Fetching https://github.com/apple/swift-numerics from cache
Fetching https://github.com/wvabrinskas/NumSwift.git
[1/1179] Fetching numswift
[37/1286] Fetching numswift, logger
Fetched https://github.com/wvabrinskas/Logger.git from cache (0.83s)
Fetched https://github.com/wvabrinskas/NumSwift.git from cache (0.83s)
Fetched https://github.com/apple/swift-numerics from cache (0.86s)
Computing version for https://github.com/wvabrinskas/NumSwift.git
Computed https://github.com/wvabrinskas/NumSwift.git at 2.0.13 (4.08s)
Computing version for https://github.com/wvabrinskas/Logger.git
Computed https://github.com/wvabrinskas/Logger.git at 1.0.7 (0.59s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (0.63s)
Creating working copy for https://github.com/wvabrinskas/NumSwift.git
Working copy of https://github.com/wvabrinskas/NumSwift.git resolved at 2.0.13
Creating working copy for https://github.com/wvabrinskas/Logger.git
Working copy of https://github.com/wvabrinskas/Logger.git resolved at 1.0.7
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "neuron",
      "name": "Neuron",
      "url": "https://github.com/wvabrinskas/Neuron.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Neuron",
      "dependencies": [
        {
          "identity": "numswift",
          "name": "NumSwift",
          "url": "https://github.com/wvabrinskas/NumSwift.git",
          "version": "2.0.13",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NumSwift",
          "dependencies": [
          ]
        },
        {
          "identity": "logger",
          "name": "Logger",
          "url": "https://github.com/wvabrinskas/Logger.git",
          "version": "1.0.7",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Logger",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-numerics",
          "name": "swift-numerics",
          "url": "https://github.com/apple/swift-numerics",
          "version": "1.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/wvabrinskas/Neuron.git
[1/11368] Fetching neuron
Fetched https://github.com/wvabrinskas/Neuron.git from cache (1.80s)
Fetching https://github.com/wvabrinskas/NumSwift.git from cache
Fetching https://github.com/wvabrinskas/Logger.git from cache
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/wvabrinskas/Logger.git from cache (0.52s)
Fetched https://github.com/wvabrinskas/NumSwift.git from cache (0.52s)
Fetched https://github.com/apple/swift-numerics from cache (0.54s)
Computing version for https://github.com/wvabrinskas/NumSwift.git
Computed https://github.com/wvabrinskas/NumSwift.git at 2.0.13 (0.60s)
Computing version for https://github.com/wvabrinskas/Logger.git
Computed https://github.com/wvabrinskas/Logger.git at 1.0.7 (0.03s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (0.04s)
Creating working copy for https://github.com/wvabrinskas/Neuron.git
Working copy of https://github.com/wvabrinskas/Neuron.git resolved at main (1d8679f)
Creating working copy for https://github.com/wvabrinskas/Logger.git
Working copy of https://github.com/wvabrinskas/Logger.git resolved at 1.0.7
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
Creating working copy for https://github.com/wvabrinskas/NumSwift.git
Working copy of https://github.com/wvabrinskas/NumSwift.git resolved at 2.0.13
warning: '.resolve-product-dependencies': dependency 'neuron' is not used by any target
Found 3 product dependencies
  - NumSwift
  - Logger
  - swift-numerics
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wvabrinskas/Neuron.git
https://github.com/wvabrinskas/Neuron.git
{
  "dependencies" : [
    {
      "identity" : "numswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.13",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/wvabrinskas/NumSwift.git"
    },
    {
      "identity" : "logger",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.6",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/wvabrinskas/Logger.git"
    },
    {
      "identity" : "swift-numerics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-numerics"
    }
  ],
  "manifest_display_name" : "Neuron",
  "name" : "Neuron",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Neuron",
      "targets" : [
        "Neuron"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NeuronTests",
      "module_type" : "SwiftTarget",
      "name" : "NeuronTests",
      "path" : "Tests/NeuronTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/NeuronTests/Resources/pretrained-classifier-color.smodel",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "DecayFunctionTests.swift",
        "FullModelTests.swift",
        "ImporterTests.swift",
        "LayerTests.swift",
        "ModelUtilitiesTests.swift",
        "Models/ColorType.swift",
        "NeuronTests.swift",
        "TensorMathTests.swift",
        "Utilities/Resource.swift",
        "VectorizeTests.swift"
      ],
      "target_dependencies" : [
        "Neuron"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Neuron",
      "module_type" : "SwiftTarget",
      "name" : "Neuron",
      "path" : "Sources/Neuron",
      "product_dependencies" : [
        "NumSwift",
        "Logger",
        "Numerics"
      ],
      "product_memberships" : [
        "Neuron"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Resources/GPU.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Resources/print-example.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Constants.swift",
        "Datasets/Dataset.swift",
        "Devices/CPU.swift",
        "Devices/Devices.swift",
        "Devices/GPU.swift",
        "Devices/GPUManager.swift",
        "Export/ExportHelper.swift",
        "Export/LayerModel.swift",
        "Export/LayerModelConverter.swift",
        "Gradient.swift",
        "Importers/Importer.swift",
        "Importers/Remote.swift",
        "Initializers.swift",
        "Layers/Activations/Activation.swift",
        "Layers/Activations/GeLu.swift",
        "Layers/Activations/LeakyReLu.swift",
        "Layers/Activations/ReLu.swift",
        "Layers/Activations/SeLu.swift",
        "Layers/Activations/Sigmoid.swift",
        "Layers/Activations/Softmax.swift",
        "Layers/Activations/Swish.swift",
        "Layers/Activations/Tanh.swift",
        "Layers/AvgPool.swift",
        "Layers/BatchNormalize.swift",
        "Layers/Conv2d.swift",
        "Layers/Dense.swift",
        "Layers/Dropout.swift",
        "Layers/Embedding/Embedding.swift",
        "Layers/Flatten.swift",
        "Layers/LSTM/LSTM.swift",
        "Layers/LSTM/LSTMCell.swift",
        "Layers/LSTM/OutputCell.swift",
        "Layers/Layer.swift",
        "Layers/LayerNormalize.swift",
        "Layers/MaxPool.swift",
        "Layers/Reshape.swift",
        "Layers/TransConv2d.swift",
        "Models/Classifier.swift",
        "Models/GAN.swift",
        "Models/RNN.swift",
        "Models/Utilities/Accuracy.swift",
        "Models/WGAN.swift",
        "Models/WGANGP.swift",
        "Optimizers/Adam.swift",
        "Optimizers/DecayFunction/DecayFunction.swift",
        "Optimizers/DecayFunction/ExponentialDecay.swift",
        "Optimizers/LossFunction/LossFunction.swift",
        "Optimizers/Optimizer.swift",
        "Optimizers/RMSProp.swift",
        "Optimizers/SGD.swift",
        "Tensor/Tensor.swift",
        "Tensor/TensorContext.swift",
        "Tensor/TensorMath.swift",
        "Tensor/TensorSize.swift",
        "Trainable/Sequential.swift",
        "Trainable/Trainable.swift",
        "Utilities/Extensions+Numbers.swift",
        "Utilities/Extensions+String.swift",
        "Utilities/Extensions+ThreadSafety.swift",
        "Utilities/Metrics.swift",
        "Utilities/ModelBuilder.swift",
        "Utilities/NormalDistribution.swift",
        "Utilities/Storage.swift",
        "Utilities/Vectorize.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/12] Write sources
[4/12] Copying GPU.metal
[4/12] Copying print-example.png
[4/12] Write sources
[8/12] Compiling _NumericsShims _NumericsShims.c
[9/12] Write swift-version-2F0A5646E1D333AE.txt
[10/24] Compiling NumSwiftC numswiftc_base.c
[11/24] Compiling NumSwiftC numswiftc.c
[13/34] Compiling RealModule Real.swift
[14/35] Compiling RealModule ElementaryFunctions.swift
[15/35] Compiling RealModule Float80+Real.swift
[16/35] Compiling RealModule AlgebraicField.swift
[17/35] Compiling RealModule Double+Real.swift
[18/35] Compiling RealModule Float+Real.swift
[19/35] Compiling RealModule Float16+Real.swift
[20/35] Compiling RealModule AugmentedArithmetic.swift
[21/35] Emitting module RealModule
[22/35] Compiling RealModule ApproximateEquality.swift
[23/35] Compiling RealModule RealFunctions.swift
[24/40] Compiling ComplexModule ElementaryFunctions.swift
[25/40] Compiling ComplexModule Differentiable.swift
[26/40] Compiling ComplexModule Complex.swift
[27/40] Emitting module ComplexModule
[28/40] Compiling ComplexModule Arithmetic.swift
[29/42] Emitting module Numerics
[30/42] Compiling Numerics Numerics.swift
[31/42] Compiling Logger Logger.swift
[32/42] Emitting module Logger
[33/42] Compiling NumSwift NumSwiftC.swift
[34/42] Compiling NumSwift NumSwiftC_Float16.swift
[35/42] Compiling NumSwift Float32.swift
[36/42] Compiling NumSwift Double.swift
[37/42] Compiling NumSwift NumSwiftCF16Base.swift
[38/42] Compiling NumSwift BaseNumeric.swift
[39/42] Compiling NumSwift Float16.swift
[40/42] Compiling NumSwift Extensions.swift
[41/42] Emitting module NumSwift
[42/42] Compiling NumSwift NumSwift.swift
[43/102] Emitting module Neuron
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[44/108] Compiling Neuron Constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[45/108] Compiling Neuron Dataset.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[46/108] Compiling Neuron CPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[47/108] Compiling Neuron Devices.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[48/108] Compiling Neuron GPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[49/108] Compiling Neuron GPUManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[50/108] Compiling Neuron ExportHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:11:21: warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct Constants {
11 |   public static var maxWorkers: Int = {
   |                     |- warning: static property 'maxWorkers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'maxWorkers' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'maxWorkers' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
13 |       // find closest power of 2 as batch sizes are usually broken up in powers of 2. Eg. 16, 32, 64
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPUManager.swift:26:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | public typealias ResultType = CFloat
 24 |
 25 | public class GPUManager {
    |              `- note: class 'GPUManager' does not conform to the 'Sendable' protocol
 26 |   public static let shared = GPUManager()
    |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GPUManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |
 28 |   public enum MetalFunction: String {
[51/108] Compiling Neuron GeLu.swift
[52/108] Compiling Neuron LeakyReLu.swift
[53/108] Compiling Neuron ReLu.swift
[54/108] Compiling Neuron SeLu.swift
[55/108] Compiling Neuron Sigmoid.swift
[56/108] Compiling Neuron Softmax.swift
[57/108] Compiling Neuron Swish.swift
[58/108] Compiling Neuron TensorSize.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:65:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
63 |     if barrier {
64 |       self.addBarrierBlock {
65 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         group.leave()
67 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:71:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
69 |     } else {
70 |       self.addOperation {
71 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |         group.leave()
73 |       }
[59/108] Compiling Neuron Sequential.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:65:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
63 |     if barrier {
64 |       self.addBarrierBlock {
65 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         group.leave()
67 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:71:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
69 |     } else {
70 |       self.addOperation {
71 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |         group.leave()
73 |       }
[60/108] Compiling Neuron Trainable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:65:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
63 |     if barrier {
64 |       self.addBarrierBlock {
65 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         group.leave()
67 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:71:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
69 |     } else {
70 |       self.addOperation {
71 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |         group.leave()
73 |       }
[61/108] Compiling Neuron Extensions+Numbers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:65:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
63 |     if barrier {
64 |       self.addBarrierBlock {
65 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         group.leave()
67 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:71:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
69 |     } else {
70 |       self.addOperation {
71 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |         group.leave()
73 |       }
[62/108] Compiling Neuron Extensions+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:65:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
63 |     if barrier {
64 |       self.addBarrierBlock {
65 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         group.leave()
67 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:71:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
69 |     } else {
70 |       self.addOperation {
71 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |         group.leave()
73 |       }
[63/108] Compiling Neuron Extensions+ThreadSafety.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:65:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
63 |     if barrier {
64 |       self.addBarrierBlock {
65 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         group.leave()
67 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:71:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
69 |     } else {
70 |       self.addOperation {
71 |         block()
   |         |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 |         group.leave()
73 |       }
[64/108] Compiling Neuron Reshape.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:91:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 89 |         if i % validationFrequency == 0 {
 90 |           DispatchQueue.main.async {
 91 |             self.validateGenerator?(self.generate())
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 92 |           }
 93 |
[65/108] Compiling Neuron TransConv2d.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:91:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 89 |         if i % validationFrequency == 0 {
 90 |           DispatchQueue.main.async {
 91 |             self.validateGenerator?(self.generate())
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 92 |           }
 93 |
[66/108] Compiling Neuron Classifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:91:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 89 |         if i % validationFrequency == 0 {
 90 |           DispatchQueue.main.async {
 91 |             self.validateGenerator?(self.generate())
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 92 |           }
 93 |
[67/108] Compiling Neuron GAN.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:91:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 89 |         if i % validationFrequency == 0 {
 90 |           DispatchQueue.main.async {
 91 |             self.validateGenerator?(self.generate())
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 92 |           }
 93 |
[68/108] Compiling Neuron RNN.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:91:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 89 |         if i % validationFrequency == 0 {
 90 |           DispatchQueue.main.async {
 91 |             self.validateGenerator?(self.generate())
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 92 |           }
 93 |
[69/108] Compiling Neuron Accuracy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:91:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 89 |         if i % validationFrequency == 0 {
 90 |           DispatchQueue.main.async {
 91 |             self.validateGenerator?(self.generate())
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 92 |           }
 93 |
[70/108] Compiling Neuron Optimizer.swift
[71/108] Compiling Neuron RMSProp.swift
[72/108] Compiling Neuron SGD.swift
[73/108] Compiling Neuron Tensor.swift
[74/108] Compiling Neuron TensorContext.swift
[75/108] Compiling Neuron TensorMath.swift
[76/108] Compiling Neuron Flatten.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[77/108] Compiling Neuron LSTM.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[78/108] Compiling Neuron LSTMCell.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[79/108] Compiling Neuron OutputCell.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[80/108] Compiling Neuron Layer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[81/108] Compiling Neuron LayerNormalize.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[82/108] Compiling Neuron MaxPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:7: warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
 10 |
 11 | /// Will decrease the size of the input tensor by half using a max pooling technique.
 12 | public final class MaxPool: BaseLayer {
    |                    `- note: class 'MaxPool' does not conform to the 'Sendable' protocol
 13 |   internal struct PoolingIndex: Hashable, Codable {
 14 |     var r: Int
    :
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |       `- warning: capture of 'self' with non-sendable type 'MaxPool' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:56: warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                                        `- warning: capture of 'tensor' with non-sendable type 'Tensor' in a '@Sendable' closure
107 |     }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/Tensor.swift:19:14: note: class 'Tensor' does not conform to the 'Sendable' protocol
 17 | /// The fundamental base for all arithmetic in the network. It holds a reference to the backpropgation graph as well as the values of the forward pass.
 18 | /// Its `value` property is a 3D array for all instances.
 19 | public class Tensor: Equatable, Codable {
    |              `- note: class 'Tensor' does not conform to the 'Sendable' protocol
 20 |   public static func == (lhs: Tensor, rhs: Tensor) -> Bool {
 21 |     lhs.value == rhs.value || lhs.id == rhs.id  // not sure at all why there's an ID property
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Layers/MaxPool.swift:106:35: warning: reference to captured var 'currentIndicies' in concurrently-executing code
104 |
105 |     queue.addBarrierBlock {
106 |       self.setGradients(indicies: currentIndicies, id: tensor.id)
    |                                   `- warning: reference to captured var 'currentIndicies' in concurrently-executing code
107 |     }
108 |
[83/108] Compiling Neuron Metrics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:163:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
161 |   public func startTimer(metric: Metric) {
162 |     timerQueue.addBarrierBlock { [weak self] in
163 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
164 |
165 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:165:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
163 |       guard let self = self else { return }
164 |
165 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
166 |         hasTimers.append(Date())
167 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:178:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
176 |
177 |     timerQueue.addBarrierBlock { [weak self] in
178 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
179 |
180 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:180:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
178 |       guard let self = self else { return }
179 |
180 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
181 |         let result = timer.map { Tensor.Scalar(Date().timeIntervalSince1970 - $0.timeIntervalSince1970) }
182 |         let average = result.average
[84/108] Compiling Neuron ModelBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:163:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
161 |   public func startTimer(metric: Metric) {
162 |     timerQueue.addBarrierBlock { [weak self] in
163 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
164 |
165 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:165:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
163 |       guard let self = self else { return }
164 |
165 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
166 |         hasTimers.append(Date())
167 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:178:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
176 |
177 |     timerQueue.addBarrierBlock { [weak self] in
178 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
179 |
180 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:180:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
178 |       guard let self = self else { return }
179 |
180 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
181 |         let result = timer.map { Tensor.Scalar(Date().timeIntervalSince1970 - $0.timeIntervalSince1970) }
182 |         let average = result.average
[85/108] Compiling Neuron NormalDistribution.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:163:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
161 |   public func startTimer(metric: Metric) {
162 |     timerQueue.addBarrierBlock { [weak self] in
163 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
164 |
165 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:165:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
163 |       guard let self = self else { return }
164 |
165 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
166 |         hasTimers.append(Date())
167 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:178:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
176 |
177 |     timerQueue.addBarrierBlock { [weak self] in
178 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
179 |
180 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:180:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
178 |       guard let self = self else { return }
179 |
180 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
181 |         let result = timer.map { Tensor.Scalar(Date().timeIntervalSince1970 - $0.timeIntervalSince1970) }
182 |         let average = result.average
[86/108] Compiling Neuron Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:163:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
161 |   public func startTimer(metric: Metric) {
162 |     timerQueue.addBarrierBlock { [weak self] in
163 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
164 |
165 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:165:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
163 |       guard let self = self else { return }
164 |
165 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
166 |         hasTimers.append(Date())
167 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:178:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
176 |
177 |     timerQueue.addBarrierBlock { [weak self] in
178 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
179 |
180 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:180:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
178 |       guard let self = self else { return }
179 |
180 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
181 |         let result = timer.map { Tensor.Scalar(Date().timeIntervalSince1970 - $0.timeIntervalSince1970) }
182 |         let average = result.average
[87/108] Compiling Neuron Vectorize.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:163:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
161 |   public func startTimer(metric: Metric) {
162 |     timerQueue.addBarrierBlock { [weak self] in
163 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
164 |
165 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:165:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
163 |       guard let self = self else { return }
164 |
165 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
166 |         hasTimers.append(Date())
167 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:178:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
176 |
177 |     timerQueue.addBarrierBlock { [weak self] in
178 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
179 |
180 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:180:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
178 |       guard let self = self else { return }
179 |
180 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
181 |         let result = timer.map { Tensor.Scalar(Date().timeIntervalSince1970 - $0.timeIntervalSince1970) }
182 |         let average = result.average
[88/108] Compiling Neuron resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:163:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
161 |   public func startTimer(metric: Metric) {
162 |     timerQueue.addBarrierBlock { [weak self] in
163 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
164 |
165 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:165:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
163 |       guard let self = self else { return }
164 |
165 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
166 |         hasTimers.append(Date())
167 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:178:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
127 |
128 | @dynamicMemberLookup
129 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
130 |   public var lock: NSLock = NSLock()
131 |   internal var totalValCorrectGuesses: Int = 0
    :
176 |
177 |     timerQueue.addBarrierBlock { [weak self] in
178 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
179 |
180 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:180:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
  9 | import NumSwift
 10 |
 11 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 12 |   case loss
 13 |   case accuracy
    :
178 |       guard let self = self else { return }
179 |
180 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
181 |         let result = timer.map { Tensor.Scalar(Date().timeIntervalSince1970 - $0.timeIntervalSince1970) }
182 |         let average = result.average
[89/108] Compiling Neuron Tanh.swift
[90/108] Compiling Neuron AvgPool.swift
[91/108] Compiling Neuron BatchNormalize.swift
[92/108] Compiling Neuron Conv2d.swift
[93/108] Compiling Neuron Dense.swift
[94/108] Compiling Neuron Dropout.swift
[95/108] Compiling Neuron Embedding.swift
[96/108] Compiling Neuron LayerModel.swift
[97/108] Compiling Neuron LayerModelConverter.swift
[98/108] Compiling Neuron Gradient.swift
[99/108] Compiling Neuron Importer.swift
[100/108] Compiling Neuron Remote.swift
[101/108] Compiling Neuron Initializers.swift
[102/108] Compiling Neuron Activation.swift
[103/108] Compiling Neuron WGAN.swift
[104/108] Compiling Neuron WGANGP.swift
[105/108] Compiling Neuron Adam.swift
[106/108] Compiling Neuron DecayFunction.swift
[107/108] Compiling Neuron ExponentialDecay.swift
[108/108] Compiling Neuron LossFunction.swift
Build complete! (16.18s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "numswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.13",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/wvabrinskas/NumSwift.git"
    },
    {
      "identity" : "logger",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.6",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/wvabrinskas/Logger.git"
    },
    {
      "identity" : "swift-numerics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-numerics"
    }
  ],
  "manifest_display_name" : "Neuron",
  "name" : "Neuron",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Neuron",
      "targets" : [
        "Neuron"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NeuronTests",
      "module_type" : "SwiftTarget",
      "name" : "NeuronTests",
      "path" : "Tests/NeuronTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/NeuronTests/Resources/pretrained-classifier-color.smodel",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "DecayFunctionTests.swift",
        "FullModelTests.swift",
        "ImporterTests.swift",
        "LayerTests.swift",
        "ModelUtilitiesTests.swift",
        "Models/ColorType.swift",
        "NeuronTests.swift",
        "TensorMathTests.swift",
        "Utilities/Resource.swift",
        "VectorizeTests.swift"
      ],
      "target_dependencies" : [
        "Neuron"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Neuron",
      "module_type" : "SwiftTarget",
      "name" : "Neuron",
      "path" : "Sources/Neuron",
      "product_dependencies" : [
        "NumSwift",
        "Logger",
        "Numerics"
      ],
      "product_memberships" : [
        "Neuron"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Resources/GPU.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Resources/print-example.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Constants.swift",
        "Datasets/Dataset.swift",
        "Devices/CPU.swift",
        "Devices/Devices.swift",
        "Devices/GPU.swift",
        "Devices/GPUManager.swift",
        "Export/ExportHelper.swift",
        "Export/LayerModel.swift",
        "Export/LayerModelConverter.swift",
        "Gradient.swift",
        "Importers/Importer.swift",
        "Importers/Remote.swift",
        "Initializers.swift",
        "Layers/Activations/Activation.swift",
        "Layers/Activations/GeLu.swift",
        "Layers/Activations/LeakyReLu.swift",
        "Layers/Activations/ReLu.swift",
        "Layers/Activations/SeLu.swift",
        "Layers/Activations/Sigmoid.swift",
        "Layers/Activations/Softmax.swift",
        "Layers/Activations/Swish.swift",
        "Layers/Activations/Tanh.swift",
        "Layers/AvgPool.swift",
        "Layers/BatchNormalize.swift",
        "Layers/Conv2d.swift",
        "Layers/Dense.swift",
        "Layers/Dropout.swift",
        "Layers/Embedding/Embedding.swift",
        "Layers/Flatten.swift",
        "Layers/LSTM/LSTM.swift",
        "Layers/LSTM/LSTMCell.swift",
        "Layers/LSTM/OutputCell.swift",
        "Layers/Layer.swift",
        "Layers/LayerNormalize.swift",
        "Layers/MaxPool.swift",
        "Layers/Reshape.swift",
        "Layers/TransConv2d.swift",
        "Models/Classifier.swift",
        "Models/GAN.swift",
        "Models/RNN.swift",
        "Models/Utilities/Accuracy.swift",
        "Models/WGAN.swift",
        "Models/WGANGP.swift",
        "Optimizers/Adam.swift",
        "Optimizers/DecayFunction/DecayFunction.swift",
        "Optimizers/DecayFunction/ExponentialDecay.swift",
        "Optimizers/LossFunction/LossFunction.swift",
        "Optimizers/Optimizer.swift",
        "Optimizers/RMSProp.swift",
        "Optimizers/SGD.swift",
        "Tensor/Tensor.swift",
        "Tensor/TensorContext.swift",
        "Tensor/TensorMath.swift",
        "Tensor/TensorSize.swift",
        "Trainable/Sequential.swift",
        "Trainable/Trainable.swift",
        "Utilities/Extensions+Numbers.swift",
        "Utilities/Extensions+String.swift",
        "Utilities/Extensions+ThreadSafety.swift",
        "Utilities/Metrics.swift",
        "Utilities/ModelBuilder.swift",
        "Utilities/NormalDistribution.swift",
        "Utilities/Storage.swift",
        "Utilities/Vectorize.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.