ngraph.opset6.ops.check_valid_attributes¶
-
ngraph.opset6.ops.
check_valid_attributes
(op_name: str, attributes: Dict[str, Any], requirements: List[Tuple[str, bool, Type, Optional[Callable]]]) → bool¶ Perform attributes validation according to specified type, value criteria.
- Parameters
op_name – The operator name which attributes are checked.
attributes – The dictionary with user provided attributes to check.
requirements –
The list of tuples describing attributes’ requirements. The tuple should contain following values: (attr_name: str,
is_required: bool, value_type: Type, value_condition: Callable)
- Raises
- Returns
True if all attributes satisfies criterias. Otherwise False.