Skip to main content

M_getDtype

Function M_getDtype 

Source
pub unsafe extern "C" fn M_getDtype(
    spec: *const M_TensorSpec,
) -> M_Dtype
Expand description

Gets the datatype from the tensor spec.

@param spec The tensor spec.

@return The element type from the tensor spec if the tensor spec is valid. Otherwise, M_UNKNOWN.