---
title: tensorID
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/mlctensor/tensorid
---

# tensorID

A number that uniquely identifies the tensor, which the framework assigns when it creates a tensor.

## Declaration

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

## See Also

### Inspecting Tensors

- [descriptor](mlcompute/mlctensor/descriptor.md)
- [data](mlcompute/mlctensor/data.md)
- [label](mlcompute/mlctensor/label.md)
- [device](mlcompute/mlctensor/device.md)
- [optimizerData](mlcompute/mlctensor/optimizerdata.md)
- [optimizerDeviceData](mlcompute/mlctensor/optimizerdevicedata.md)
- [hasValidNumerics](mlcompute/mlctensor/hasvalidnumerics.md)
- [MLCTensorOptimizerDeviceData](mlcompute/mlctensoroptimizerdevicedata.md)
