[WIP]Shape check input

Only Cuda and Tensor had C code with check on the input c_extract.
@abergeron do this method need change to don't do some check? Why it don't check for the dtype and ndim?