---
title: layerID
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlclayer/layerid
---

# layerID

A unique number that identifies each layer.

## Declaration

```swift
var layerID: Int { get }
```

## Discussion

Discussion The framework assigns layerID during layer initialization.

## See Also

### Inspecting a Layer

- [label](mlcompute/mlclayer/label.md)
- [isDebuggingEnabled](mlcompute/mlclayer/isdebuggingenabled.md)
- [deviceType](mlcompute/mlclayer/devicetype.md)
- [supportsDataType(_:on:)](mlcompute/mlclayer/supportsdatatype(_:on:).md)
