<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModelStructure-swift.enum/NeuralNetwork/Layer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "s:6CoreML16MLModelStructureO13NeuralNetworkV5LayerV"
  },
  "title" : "MLModelStructure.NeuralNetwork.Layer"
}
-->

# MLModelStructure.NeuralNetwork.Layer

```
struct Layer
```

## Topics

### Accessing layer properties

[`let inputNames: [String]`](/documentation/CoreML/MLModelStructure-swift.enum/NeuralNetwork/Layer/inputNames)

The input names.

[`let name: String`](/documentation/CoreML/MLModelStructure-swift.enum/NeuralNetwork/Layer/name)

The layer name.

[`let outputNames: [String]`](/documentation/CoreML/MLModelStructure-swift.enum/NeuralNetwork/Layer/outputNames)

The output names.

[`let type: String`](/documentation/CoreML/MLModelStructure-swift.enum/NeuralNetwork/Layer/type)

The type of the layer, e,g, “elementwise”, “pooling”, etc.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)