AttributeError: 'tuple' object has no attribute 'shape'
According to the error you posted, Data
is of type tuple and there is no attribute shape
defined for data. You could try casting Data
when you call your preprocess
function, e.g.:
preprocess(numpy.array(Data))