---
title: tensorReferenceType()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlstructmember/tensorreferencetype()
---

# tensorReferenceType()

Provides a description of the underlying tensor type when this struct member holds a tensor.

## Declaration

```swift
func tensorReferenceType() -> MTLTensorReferenceType?
```

## Return Value

Return Value A description of the tensor type that this struct member holds, or nil if this struct member doesn’t hold a tensor.
