You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/26 16:48:38 UTC

[GitHub] dabraude commented on issue #9573: Added two functions to the C API

dabraude commented on issue #9573: Added two functions to the C API
URL: https://github.com/apache/incubator-mxnet/pull/9573#issuecomment-360838967
 
 
   with just this
   
   if you comment out the MXInitialise():
   
   `
   #include <stdlib.h>
   #include <stdio.h>
   #include <mxnet/c_api.h>
   
   
   int main() {
       
       mx_uint out_size, out_name_size;
       NDArrayHandle *out_arr;
       SymbolHandle sym;
       const char ** out_names;
       const char * param_fn = "checkpoint-0000.params";
       const char * symbol_fn = "symbol.json";
   
       printf("Loading mxnet\n");
       MXInitialise();
       
       MXNDArrayLoad(param_fn, &out_size, &out_arr, &out_name_size, &out_names);
       MXSymbolCreateFromFile(symbol_fn, &sym);
       return 0;
   }
   `
   
   you will get
   `
   Check failed: op != nullptr Operator FullyConnected is not registered
   `
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services