---
title: "isAllowedValue(_:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlfeaturedescription/isallowedvalue(_:)"
---

# isAllowedValue(_:)

Checks whether the model will accept an input feature value.

## Declaration

```swift
func isAllowedValue(_ value: MLFeatureValue) -> Bool
```

## Parameters

- `value`: Given the MLFeatureValue, is it compatible with the MLFeatureType of this MLFeatureDescription.

## Return Value

Return Value True if the given MLFeatureValue is acceptable to the model’s input feature, false otherwise.
