---
title: scalarType
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mltensor/scalartype
---

# scalarType

The type of scalars in the tensor.

## Declaration

```swift
var scalarType: any MLTensorScalar.Type { get }
```

## See Also

### Accessing tensor properties

- [isScalar](coreml/mltensor/isscalar.md)
- [rank](coreml/mltensor/rank.md)
- [scalarCount](coreml/mltensor/scalarcount.md)
- [shape](coreml/mltensor/shape.md)
