It is true, that kind of data store is not supported for code generation.
The limitations are discussed in https://www.mathworks.com/help/deeplearning/ref/seriesnetwork.classify.html#mw_9fc06d87-a72f-4e03-b313-c82a3b4c1a92
C++ code generation supports the following syntaxes:
- [YPred,scores] = classify(net,X)
- [YPred,scores] = classify(net,sequences)
That is, do not create an augmented store: do the imresize() yourself and pass the resized image in as image data directly.