Function mlir_sys::mlirElementsAttrGetNumElements
source · pub unsafe extern "C" fn mlirElementsAttrGetNumElements(
attr: MlirAttribute
) -> i64
Expand description
Gets the total number of elements in the given elements attribute. In order to iterate over the attribute, obtain its type, which must be a statically shaped type and use its sizes to build a multi-dimensional index.