rodrilag:

So, I tried to initially change the datatype of the ndarrays with this:
X_train= np.ndarray([1875,32,1,32,32],  dtype=sp.posit8)
X_validate = np.ndarray([313,32,1,32,32],  dtype=sp.posit8)

And, with this change, I get again the PC blocked. So, can it be due to the datatype format of softposit and the huge amount of data the reason that the kernel is not capable of making the cast?


The posted code snippet would use ~470MB in np.float64 and assuming that sp.posit8 uses 8bit, it would be less, so I don’t think that it’s a huge amount of data.
With that being said, I’m not familiar with sp.posit8 and since the numpy array transformation is already freezing your system, it seems that this transformation is failing.