ngraph.utils.input_validation

Helper functions for validating user input.

Module Attributes

Functions

assert_list_of_ints(value_list, message)

Verify that the provided value is an iterable of integers.

check_valid_attribute(op_name, attr_dict, …)

Check whether specified attribute satisfies given criteria.

check_valid_attributes(op_name, attributes, …)

Perform attributes validation according to specified type, value criteria.

is_non_negative_value(x)

Determine whether the specified x is non-negative value.

is_positive_value(x)

Determine whether the specified x is positive value.

Classes

Exceptions

UserInputError

User provided unexpected input.

Modules