Utility#
- ivy.optional_get_element(x=None, /, *, out=None)[source]#
If the input is a tensor or sequence type, it returns the input. If the input is an optional type, it outputs the element in the input. It is an error if the input is an empty optional-type (i.e. does not have an element) and the behavior is undefined in this case.
This should have hopefully given you an overview of the utility submodule, if you have any questions, please feel free to reach out on our discord!