The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Neuron, reference 2.2.3 (ca3695), with Swift 6.1 for macOS (SPM) on 17 Mar 2026 03:08:30 UTC.

Swift 6 data race errors: 6

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.69.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wvabrinskas/Neuron.git
Reference: 2.2.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wvabrinskas/Neuron
 * tag               2.2.3      -> FETCH_HEAD
HEAD is now at ca3695f Major framework upgrade: TensorStorage, pointer-based arithmetic, batching, and new layers (#159)
Cloned https://github.com/wvabrinskas/Neuron.git
Revision (git rev-parse @):
ca3695f82f562e420fde957bf913ed44cd1c6e47
SUCCESS checkout https://github.com/wvabrinskas/Neuron.git at 2.2.3
========================================
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.24",
            "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"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Neuron",
  "name" : "Neuron",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "14.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" : [
        "ArithmeticTests.swift",
        "DecayFunctionTests.swift",
        "DepthwiseConv2dTests.swift",
        "FullModelTests.swift",
        "ImporterTests.swift",
        "InitializerTests.swift",
        "LayerTests.swift",
        "LossFunctionTests.swift",
        "MetalContextBufferPoolTests.swift",
        "MetalTensorStorageIntegrationTests.swift",
        "MetalTensorStorageTests.swift",
        "MixupTests.swift",
        "ModelUtilitiesTests.swift",
        "Models/ColorType.swift",
        "NeuronTests.swift",
        "OptimizerTests.swift",
        "TensorMathTests.swift",
        "TensorStorageArithmeticTests.swift",
        "TensorStorageTests.swift",
        "TokenizerTests.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",
        "Atomics"
      ],
      "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" : [
        "Augmenters/Augmenter.swift",
        "Augmenters/Mixup.swift",
        "Constants.swift",
        "Datasets/Dataset.swift",
        "Devices/CPU.swift",
        "Devices/Devices.swift",
        "Devices/GPU.swift",
        "Devices/GPU/BufferPool.swift",
        "Devices/GPU/MetalContext.swift",
        "Export/ExportHelper.swift",
        "Export/LayerModel.swift",
        "Export/LayerModelConverter.swift",
        "Gradient.swift",
        "Helpers/WelfordVariance.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/Add.swift",
        "Layers/AvgPool.swift",
        "Layers/BatchNormalize.swift",
        "Layers/Conv2d.swift",
        "Layers/Dense.swift",
        "Layers/DepthwiseConv2d.swift",
        "Layers/Divide.swift",
        "Layers/Dropout.swift",
        "Layers/Embedding/Embedding.swift",
        "Layers/Flatten.swift",
        "Layers/GlobalAveragePool.swift",
        "Layers/InstanceNormalize.swift",
        "Layers/LSTM/LSTM.swift",
        "Layers/LSTM/LSTMCell.swift",
        "Layers/LSTM/OutputCell.swift",
        "Layers/Layer.swift",
        "Layers/LayerNormalize.swift",
        "Layers/MaxPool.swift",
        "Layers/Multiply.swift",
        "Layers/ResNet.swift",
        "Layers/Reshape.swift",
        "Layers/RexNet.swift",
        "Layers/Subtract.swift",
        "Layers/TransConv2d.swift",
        "Layers/Utilities/LayerGroup.swift",
        "Models/Classifier.swift",
        "Models/GAN.swift",
        "Models/RNN.swift",
        "Models/Utilities/Accuracy.swift",
        "Models/Utilities/VectorizableDataset.swift",
        "Models/WGAN.swift",
        "Models/WGANGP.swift",
        "Optimizers/Adam.swift",
        "Optimizers/DecayFunction/CosineAnnealing.swift",
        "Optimizers/DecayFunction/DecayFunction.swift",
        "Optimizers/DecayFunction/ExponentialDecay.swift",
        "Optimizers/LossFunction/LossFunction.swift",
        "Optimizers/Optimizer.swift",
        "Optimizers/RMSProp.swift",
        "Optimizers/SGD.swift",
        "Tensor/IDGenerator.swift",
        "Tensor/MetalTensorStorage.swift",
        "Tensor/Tensor.swift",
        "Tensor/TensorContext.swift",
        "Tensor/TensorMath.swift",
        "Tensor/TensorSize.swift",
        "Tensor/TensorStorage+Arithmetic.swift",
        "Tensor/TensorStorage.swift",
        "Tokenizers/Tokenizing.swift",
        "Trainable/Sequential.swift",
        "Trainable/Trainable.swift",
        "Utilities/BetaDistribution.swift",
        "Utilities/Exportable.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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/16] Write sources
[5/16] Copying GPU.metal
[6/16] Copying print-example.png
[7/16] Write sources
[11/16] Compiling _NumericsShims _NumericsShims.c
[12/16] Write swift-version-2F0A5646E1D333AE.txt
[13/16] Compiling _AtomicsShims.c
[14/48] Compiling NumSwiftC numswiftc_base.c
[15/48] Compiling NumSwiftC numswiftc.c
[17/65] Compiling RealModule Real.swift
[18/65] Compiling RealModule Float80+Real.swift
[19/65] Compiling RealModule RealFunctions.swift
[20/66] Compiling RealModule ElementaryFunctions.swift
[21/66] Compiling RealModule AugmentedArithmetic.swift
[22/66] Compiling RealModule Float16+Real.swift
[23/66] Compiling RealModule Float+Real.swift
[24/66] Compiling NumSwift Float32.swift
[25/66] Compiling NumSwift BaseNumeric.swift
[26/66] Emitting module RealModule
[27/66] Compiling RealModule Double+Real.swift
[28/66] Compiling RealModule RelaxedArithmetic.swift
[29/66] Compiling Atomics ManagedAtomicLazyReference.swift
[30/66] Compiling Atomics UnsafeAtomic.swift
[31/66] Compiling NumSwift NumSwift.swift
[32/66] Compiling NumSwift NumSwiftC.swift
[33/66] Compiling NumSwift Double.swift
[34/66] Compiling NumSwift Extensions.swift
[35/66] Compiling Atomics UnsafeAtomicLazyReference.swift
[36/66] Compiling Atomics IntegerOperations.swift
[37/67] Compiling NumSwift FloatArithmeticBase.swift
[38/67] Compiling NumSwift FloatArrayArithmetic.swift
[39/67] Compiling NumSwift FloatContiguousArrayArithmetic.swift
[40/67] Compiling NumSwift Float16.swift
[41/78] Compiling Atomics Unmanaged extensions.swift
[42/78] Compiling ComplexModule Polar.swift
[43/79] Compiling ComplexModule Complex+Numeric.swift
[44/79] Compiling ComplexModule Complex+StringConvertible.swift
[45/79] Compiling ComplexModule Complex.swift
[46/79] Compiling NumSwift Float16ArrayArithmetic.swift
[47/79] Compiling NumSwift Float16ContiguousArrayArithmetic.swift
[48/79] Compiling NumSwift 1DFloat.swift
[49/79] Compiling NumSwift 1DFloat16.swift
[50/79] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[51/79] Compiling ComplexModule Complex+AlgebraicField.swift
[52/79] Compiling ComplexModule Complex+IntegerLiteral.swift
[53/79] Compiling ComplexModule Complex+Codable.swift
[54/79] Compiling ComplexModule Complex+Hashable.swift
[55/79] Emitting module Atomics
[56/79] Compiling ComplexModule Scale.swift
[59/79] Compiling ComplexModule Complex+ElementaryFunctions.swift
[60/79] Emitting module ComplexModule
[61/81] Emitting module Numerics
[62/81] Compiling Numerics Numerics.swift
[63/81] Emitting module Logger
[64/81] Compiling Logger Logger.swift
[69/81] Compiling NumSwift NumSwiftC_Float16.swift
[70/81] Compiling NumSwift NumSwiftFlat.swift
[79/81] Emitting module NumSwift
[82/82] Compiling NumSwift NumSwiftFlatPointer.swift
[83/163] Compiling Neuron GeLu.swift
[84/163] Compiling Neuron LeakyReLu.swift
[85/163] Compiling Neuron ReLu.swift
[86/163] Compiling Neuron SeLu.swift
[87/163] Compiling Neuron Sigmoid.swift
[88/163] Compiling Neuron Softmax.swift
[89/163] Compiling Neuron Swish.swift
[90/163] Compiling Neuron Tanh.swift
[91/163] Compiling Neuron Add.swift
[92/171] Compiling Neuron Augmenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[93/171] Compiling Neuron Mixup.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[94/171] Compiling Neuron Constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[95/171] Compiling Neuron Dataset.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[96/171] Compiling Neuron CPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[97/171] Compiling Neuron Devices.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[98/171] Compiling Neuron GPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[99/171] Compiling Neuron BufferPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[100/171] Compiling Neuron MetalContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
[101/171] Compiling Neuron TensorStorage+Arithmetic.swift
[102/171] Compiling Neuron TensorStorage.swift
[103/171] Compiling Neuron Tokenizing.swift
[104/171] Compiling Neuron Sequential.swift
[105/171] Compiling Neuron Trainable.swift
[106/171] Compiling Neuron BetaDistribution.swift
[107/171] Compiling Neuron Exportable.swift
[108/171] Compiling Neuron Extensions+Numbers.swift
[109/171] Compiling Neuron Accuracy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[110/171] Compiling Neuron VectorizableDataset.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[111/171] Compiling Neuron WGAN.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[112/171] Compiling Neuron WGANGP.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[113/171] Compiling Neuron Adam.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[114/171] Compiling Neuron CosineAnnealing.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[115/171] Compiling Neuron DecayFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[116/171] Compiling Neuron ExponentialDecay.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[117/171] Compiling Neuron LossFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Optimizers/LossFunction/LossFunction.swift:43:9: warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 41 |
 42 |     // Build result using flat storage
 43 |     var resultStorage = TensorStorage.create(count: depth * 1 * rows)
    |         `- warning: variable 'resultStorage' was never mutated; consider changing to 'let' constant
 44 |     let depthScalar = Tensor.Scalar(depth)
 45 |
[118/171] Compiling Neuron GlobalAveragePool.swift
[119/171] Compiling Neuron InstanceNormalize.swift
[120/171] Compiling Neuron LSTM.swift
[121/171] Compiling Neuron LSTMCell.swift
[122/171] Compiling Neuron OutputCell.swift
[123/171] Compiling Neuron Layer.swift
[124/171] Compiling Neuron LayerNormalize.swift
[125/171] Compiling Neuron MaxPool.swift
[126/171] Compiling Neuron Multiply.swift
[127/171] Compiling Neuron ResNet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[128/171] Compiling Neuron Reshape.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[129/171] Compiling Neuron RexNet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[130/171] Compiling Neuron Subtract.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[131/171] Compiling Neuron TransConv2d.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[132/171] Compiling Neuron LayerGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[133/171] Compiling Neuron Classifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[134/171] Compiling Neuron GAN.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[135/171] Compiling Neuron RNN.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Models/GAN.swift:117:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 |         if i % validationFrequency == 0 {
116 |           DispatchQueue.main.async {
117 |             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
118 |           }
119 |
[136/171] Compiling Neuron AvgPool.swift
[137/171] Compiling Neuron BatchNormalize.swift
[138/171] Compiling Neuron Conv2d.swift
[139/171] Compiling Neuron Dense.swift
[140/171] Compiling Neuron DepthwiseConv2d.swift
[141/171] Compiling Neuron Divide.swift
[142/171] Compiling Neuron Dropout.swift
[143/171] Compiling Neuron Embedding.swift
[144/171] Compiling Neuron Flatten.swift
[145/171] Compiling Neuron Optimizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[146/171] Compiling Neuron RMSProp.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[147/171] Compiling Neuron SGD.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[148/171] Compiling Neuron IDGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[149/171] Compiling Neuron MetalTensorStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[150/171] Compiling Neuron Tensor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[151/171] Compiling Neuron TensorContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[152/171] Compiling Neuron TensorMath.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[153/171] Compiling Neuron TensorSize.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/TensorMath.swift:625:9: warning: will never be executed
 622 |       if val.isNormal == false {
 623 |         print(val)
 624 |         fatalError()
     |         `- note: a call to a never-returning function
 625 |         return
     |         `- warning: will never be executed
 626 |       }
 627 |     }
[154/171] Compiling Neuron Extensions+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[155/171] Compiling Neuron Extensions+ThreadSafety.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[156/171] Compiling Neuron Metrics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[157/171] Compiling Neuron ModelBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[158/171] Compiling Neuron NormalDistribution.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[159/171] Compiling Neuron Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[160/171] Compiling Neuron Vectorize.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[161/171] Compiling Neuron resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:73:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 71 |     if barrier {
 72 |       self.addBarrierBlock {
 73 |         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'
 74 |         group.leave()
 75 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Extensions+ThreadSafety.swift:79:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
 77 |     } else {
 78 |       self.addOperation {
 79 |         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'
 80 |         group.leave()
 81 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:190:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
188 |   public func startTimer(metric: Metric) {
189 |     timerQueue.addBarrierBlock { [weak self] in
190 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
191 |
192 |       if var hasTimers = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:192:38: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
190 |       guard let self = self else { return }
191 |
192 |       if var hasTimers = self.timers[metric] {
    |                                      `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
193 |         hasTimers.append(CFAbsoluteTimeGetCurrent())
194 |         self.timers[metric] = hasTimers
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:208:24: warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
138 | @dynamicMemberLookup
139 | /// A class that collects, aggregates, and periodically reports training metrics during model training loops.
140 | public class MetricsReporter: MetricCalculator {
    |              `- note: class 'MetricsReporter' does not conform to the 'Sendable' protocol
141 | /// A lock used to synchronize concurrent access to shared metric state.
142 |   public var lock: NSLock = NSLock()
    :
206 |
207 |     timerQueue.addBarrierBlock { [weak self] in
208 |       guard let self = self else { return }
    |                        `- warning: capture of 'self' with non-sendable type 'MetricsReporter?' in a '@Sendable' closure
209 |
210 |       if let timer = self.timers[metric] {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Utilities/Metrics.swift:210:34: warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
 10 |
 11 | /// An enumeration of supported metric types used to track training and evaluation statistics.
 12 | public enum Metric: String {
    |             `- note: consider making enum 'Metric' conform to the 'Sendable' protocol
 13 |   case loss
 14 |   case accuracy
    :
208 |       guard let self = self else { return }
209 |
210 |       if let timer = self.timers[metric] {
    |                                  `- warning: capture of 'metric' with non-sendable type 'Metric' in a '@Sendable' closure
211 |         let result = timer.map { Tensor.Scalar(CFAbsoluteTimeGetCurrent() - $0) }
212 |         let average = result.average
[162/171] Emitting module Neuron
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:15:21: warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// Defaults to `.heNormal`, which is suitable for layers using ReLU activations.
15 |   public static var defaultInitializer: InitializerType = .heNormal
   |                     |- warning: static property 'defaultInitializer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'defaultInitializer' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'defaultInitializer' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The maximum number of worker threads to use for parallel operations.
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Constants.swift:22: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
20 |   /// down to the nearest power of two to allow even work distribution across threads.
21 |   /// Falls back to `4` if the core count cannot be determined.
22 |   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
23 |     if let perfCores = getSysctlIntValue("hw.perflevel0.physicalcpu") {
24 |       // 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/Devices.swift:113:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | final class DeviceManager {
    |             `- note: class 'DeviceManager' does not conform to the 'Sendable' protocol
113 |   static let shared = DeviceManager()
    |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceManager' 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
114 |
115 |   var type: DeviceType = .cpu {
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Devices/GPU/MetalContext.swift:18:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' may have shared mutable state; this is an error in the Swift 6 language mode
13 | /// Lazy initialization ensures Metal is only created when first accessed.
14 | /// Use `isAvailable` to check before creating Metal-backed storage (e.g. in simulators).
15 | public final class MetalContext {
   |                    `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
16 |
17 |   /// The shared singleton instance of `MetalContext`.
18 |   public static let shared = MetalContext()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MetalContext' 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
19 |
20 |   private let _device: MTLDevice?
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:17:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | class IDGenerator {
   |       `- note: class 'IDGenerator' does not conform to the 'Sendable' protocol
17 |   static let shared = IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'IDGenerator' 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
18 |   private let uuidGenerator: UUIDIDGenerator = .init()
19 |   private let int64Generator: UInt64IDGenerator = .init()
/Users/admin/builder/spi-builder-workspace/Sources/Neuron/Tensor/IDGenerator.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | final class UInt64IDGenerator: IDGenerating {
   |             `- note: class 'UInt64IDGenerator' does not conform to the 'Sendable' protocol
47 |   static let shared = UInt64IDGenerator()
   |              |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UInt64IDGenerator' 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
48 |   private let nextID = ManagedAtomic<UInt64>(0)
49 |
[163/171] Compiling Neuron ExportHelper.swift
[164/171] Compiling Neuron LayerModel.swift
[165/171] Compiling Neuron LayerModelConverter.swift
[166/171] Compiling Neuron Gradient.swift
[167/171] Compiling Neuron WelfordVariance.swift
[168/171] Compiling Neuron Importer.swift
[169/171] Compiling Neuron Remote.swift
[170/171] Compiling Neuron Initializers.swift
[171/171] Compiling Neuron Activation.swift
Build complete! (33.77s)
Fetching https://github.com/apple/swift-docc-plugin
[1/2171] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.15s)
Fetching https://github.com/wvabrinskas/Logger.git
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetching https://github.com/wvabrinskas/NumSwift.git
Fetching https://github.com/apple/swift-numerics from cache
Fetching https://github.com/apple/swift-atomics.git from cache
[1/1658] Fetching numswift
[18/1765] Fetching numswift, logger
Fetched https://github.com/wvabrinskas/Logger.git from cache (0.99s)
Fetched https://github.com/wvabrinskas/NumSwift.git from cache (0.99s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.00s)
Fetched https://github.com/apple/swift-numerics from cache (1.01s)
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.03s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.70s)
Computing version for https://github.com/wvabrinskas/NumSwift.git
Computed https://github.com/wvabrinskas/NumSwift.git at 2.0.24 (0.58s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.46s)
Computing version for https://github.com/wvabrinskas/Logger.git
Computed https://github.com/wvabrinskas/Logger.git at 1.0.7 (0.57s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.47s)
Creating working copy for https://github.com/wvabrinskas/NumSwift.git
Working copy of https://github.com/wvabrinskas/NumSwift.git resolved at 2.0.24
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at main (e977f65)
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/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "numswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.24",
            "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"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Neuron",
  "name" : "Neuron",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "14.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" : [
        "ArithmeticTests.swift",
        "DecayFunctionTests.swift",
        "DepthwiseConv2dTests.swift",
        "FullModelTests.swift",
        "ImporterTests.swift",
        "InitializerTests.swift",
        "LayerTests.swift",
        "LossFunctionTests.swift",
        "MetalContextBufferPoolTests.swift",
        "MetalTensorStorageIntegrationTests.swift",
        "MetalTensorStorageTests.swift",
        "MixupTests.swift",
        "ModelUtilitiesTests.swift",
        "Models/ColorType.swift",
        "NeuronTests.swift",
        "OptimizerTests.swift",
        "TensorMathTests.swift",
        "TensorStorageArithmeticTests.swift",
        "TensorStorageTests.swift",
        "TokenizerTests.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",
        "Atomics"
      ],
      "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" : [
        "Augmenters/Augmenter.swift",
        "Augmenters/Mixup.swift",
        "Constants.swift",
        "Datasets/Dataset.swift",
        "Devices/CPU.swift",
        "Devices/Devices.swift",
        "Devices/GPU.swift",
        "Devices/GPU/BufferPool.swift",
        "Devices/GPU/MetalContext.swift",
        "Export/ExportHelper.swift",
        "Export/LayerModel.swift",
        "Export/LayerModelConverter.swift",
        "Gradient.swift",
        "Helpers/WelfordVariance.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/Add.swift",
        "Layers/AvgPool.swift",
        "Layers/BatchNormalize.swift",
        "Layers/Conv2d.swift",
        "Layers/Dense.swift",
        "Layers/DepthwiseConv2d.swift",
        "Layers/Divide.swift",
        "Layers/Dropout.swift",
        "Layers/Embedding/Embedding.swift",
        "Layers/Flatten.swift",
        "Layers/GlobalAveragePool.swift",
        "Layers/InstanceNormalize.swift",
        "Layers/LSTM/LSTM.swift",
        "Layers/LSTM/LSTMCell.swift",
        "Layers/LSTM/OutputCell.swift",
        "Layers/Layer.swift",
        "Layers/LayerNormalize.swift",
        "Layers/MaxPool.swift",
        "Layers/Multiply.swift",
        "Layers/ResNet.swift",
        "Layers/Reshape.swift",
        "Layers/RexNet.swift",
        "Layers/Subtract.swift",
        "Layers/TransConv2d.swift",
        "Layers/Utilities/LayerGroup.swift",
        "Models/Classifier.swift",
        "Models/GAN.swift",
        "Models/RNN.swift",
        "Models/Utilities/Accuracy.swift",
        "Models/Utilities/VectorizableDataset.swift",
        "Models/WGAN.swift",
        "Models/WGANGP.swift",
        "Optimizers/Adam.swift",
        "Optimizers/DecayFunction/CosineAnnealing.swift",
        "Optimizers/DecayFunction/DecayFunction.swift",
        "Optimizers/DecayFunction/ExponentialDecay.swift",
        "Optimizers/LossFunction/LossFunction.swift",
        "Optimizers/Optimizer.swift",
        "Optimizers/RMSProp.swift",
        "Optimizers/SGD.swift",
        "Tensor/IDGenerator.swift",
        "Tensor/MetalTensorStorage.swift",
        "Tensor/Tensor.swift",
        "Tensor/TensorContext.swift",
        "Tensor/TensorMath.swift",
        "Tensor/TensorSize.swift",
        "Tensor/TensorStorage+Arithmetic.swift",
        "Tensor/TensorStorage.swift",
        "Tokenizers/Tokenizing.swift",
        "Trainable/Sequential.swift",
        "Trainable/Trainable.swift",
        "Utilities/BetaDistribution.swift",
        "Utilities/Exportable.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.