wkcn commented on issue #18540: URL: https://github.com/apache/incubator-mxnet/issues/18540#issuecomment-643061214
The cause is that nd.stack doesn't support zero-shape array. replacing `self.label` with `self.label = [nd.array([0]) if x.split('/')[-1] == 'test' else nd.array([1]) for x in self.files]` works. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org