sshearn edited a comment on issue #16620: Incompatible input shape
URL: 
https://github.com/apache/incubator-mxnet/issues/16620#issuecomment-555027589
 
 
   Here's the full model:
   
   
[model.zip](https://github.com/apache/incubator-mxnet/files/3858917/model.zip)
   
   Here's the code for the attached model (it's the same as above but the shape 
is slightly different):
   
   ```
   List<Context> context = new ArrayList<>();
   List<DataDesc> inputDesc = new ArrayList<>();
   
   inputDesc.add(new DataDesc("data",
           new Shape(new int[]{1, 0, 1, 6637}),
           DType.Float32(),
           Layout.NCHW()));
   
   context.add(Context.cpu());
   
   Predictor predictor = new Predictor("/tmp/model", inputDesc, context, 0);
   ```
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

Reply via email to