[MemRef] Get Any-Width MemRefDescriptor from Numpy Array


I am using the get_ranked_memref_descriptor python binding to create MemRefDescriptors from numpy array for regular integer types like int32 and int64. I notice that it gets the type information from input numpy array. However, numpy doesn’t have any-width integer support such as int7 or int1024.

My question is: how should one get any-width MemRefDescriptor from numpy arrays?