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/02/07 04:01:21 UTC

[GitHub] allenxcp opened a new issue #9726: JSONReader: Unknown field attrs, candidates are:

allenxcp opened a new issue #9726: JSONReader: Unknown field attrs, candidates are: 
URL: https://github.com/apache/incubator-mxnet/issues/9726
 
 
   @mli 
   
   ## Description
   I train my dataset on ubuntu system with python code.
   I test my model on MAC with c++ code.when I load the xxx.json,some errors happened:
   
   WorkSpace/mxnet/dmlc-core/include/dmlc/./json.h:842: JSONReader: Unknown field attrs, candidates are: 
   "attr"
   "backward_source_id"
   "control_deps"
   "inputs"
   "name"
   "op"
   "param"
   
   ## Environment info (Required)
   ----------Python Info----------
   ('Version      :', '2.7.10')
   ('Compiler     :', 'GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)')
   ('Build        :', ('default', 'Jul 15 2017 17:16:57'))
   ('Arch         :', ('64bit', ''))
   ------------Pip Info-----------
   ('Version      :', '9.0.1')
   ('Directory    :', '/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip')
   ----------MXNet Info-----------
   ('Version      :', '1.0.0')
   ('Directory    :', '/Library/Python/2.7/site-packages/mxnet')
   ('Commit Hash   :', '25720d0e3c29232a37e2650f3ba3a2454f9367bb')
   ----------System Info----------
   ('Platform     :', 'Darwin-17.4.0-x86_64-i386-64bit')
   ('system       :', 'Darwin')
   ('node         :', 'TJiadeMacBook-Pro.local')
   ('release      :', '17.4.0')
   ('version      :', 'Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64')
   ----------Hardware Info----------
   ('machine      :', 'x86_64')
   ('processor    :', 'i386')
   machdep.cpu.brand_string: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
   machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
   machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 AVX2 BMI2 INVPCID FPU_CSDS
   machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 1.0592 sec, LOAD: 1.6985 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0678 sec, LOAD: 0.5445 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0932 sec, LOAD: 0.5238 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0547 sec, LOAD: 0.2792 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.4792 sec, LOAD: 0.1389 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.4740 sec, LOAD: 0.4458 sec.
   ```
   
   ## Build info (Required if built from source)
   
   Compiler:
   ubuntu gcc ;
   MAC: clang
   
   MXNet commit hash:
   ubuntu and MAC are the same version 1000
   
   Error:
   ## Error Message:
   /Users/tjia/Desktop/WorkSpace/mxnet/dmlc-core/include/dmlc/logging.h:308: [11:41:47] /Users/tjia/Desktop/WorkSpace/mxnet/dmlc-core/include/dmlc/./json.h:842: JSONReader: Unknown field attrs, candidates are: 
   "attr"
   "backward_source_id"
   "control_deps"
   "inputs"
   "name"
   "op"
   "param"
   
   
   Stack trace returned 10 entries:
   [bt] (0) 0   libmxnet.so                         0x00000001003a7f18 _ZN4dmlc15LogMessageFatalD2Ev + 40
   [bt] (1) 1   libmxnet.so                         0x0000000100f04179 _ZN4dmlc20JSONObjectReadHelper13ReadAllFieldsEPNS_10JSONReaderE + 409
   [bt] (2) 2   libmxnet.so                         0x0000000100f04e6d _ZN4dmlc20JSONObjectReadHelper14ReaderFunctionINSt3__16vectorIN4nnvm4pass12_GLOBAL__N_18JSONNodeENS2_9allocatorIS7_EEEEEEvPNS_10JSONReaderEPv + 1149
   [bt] (3) 3   libmxnet.so                         0x0000000100f04247 _ZN4dmlc20JSONObjectReadHelper13ReadAllFieldsEPNS_10JSONReaderE + 615
   [bt] (4) 4   libmxnet.so                         0x0000000100f00aa1 _ZN4nnvm4pass12_GLOBAL__N_18LoadJSONENS_5GraphE + 2033
   [bt] (5) 5   libmxnet.so                         0x0000000100c78b61 _ZNSt3__128__invoke_void_return_wrapperIN4nnvm5GraphEE6__callIJRPFS2_S2_ES2_EEES2_DpOT_ + 209
   [bt] (6) 6   libmxnet.so                         0x0000000100c78a52 _ZNSt3__110__function6__funcIPFN4nnvm5GraphES3_ENS_9allocatorIS5_EES4_EclEOS3_ + 18
   [bt] (7) 7   libmxnet.so                         0x0000000100ecf708 _ZN4nnvm11ApplyPassesENS_5GraphERKNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEE + 1448
   [bt] (8) 8   libmxnet.so                         0x0000000100b6906b _ZN4nnvm9ApplyPassENS_5GraphERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 187
   [bt] (9) 9   libmxnet.so                         0x0000000100c77112 _ZN5mxnet18LoadLegacyJSONPassEN4nnvm5GraphE + 418
   
   libc++abi.dylib: terminating with uncaught exception of type dmlc::Error: [11:41:47] /Users/tjia/Desktop/WorkSpace/mxnet-github/incubator-mxnet/cpp-package/include/mxnet-cpp/symbol.hpp:102: Check failed: MXSymbolCreateFromFile(file_name.c_str(), &(handle)) == 0 (-1 vs. 0) 
   
   
   

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