microsoft / CNTK

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit
https://docs.microsoft.com/cognitive-toolkit/
Other
17.49k stars 4.3k forks source link

onnx errors building cntk2.7 #3842

Closed robbiewongBD closed 3 years ago

robbiewongBD commented 3 years ago

2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(92): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(92): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(92): error C2059: syntax error: '&&' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(93): error C2143: syntax error: missing ';' before '{' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(194): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(195): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(194): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(194): error C2059: syntax error: ')' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(195): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(209): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(209): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(209): error C2059: syntax error: '&&' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(210): error C2143: syntax error: missing ';' before '{' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(217): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(217): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(217): error C2059: syntax error: '->' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(219): error C2181: illegal else without matching if 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(286): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(303): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(286): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(286): error C2059: syntax error: '||' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(287): error C2143: syntax error: missing ';' before '{' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(303): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(303): error C2059: syntax error: '&&' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\controlflowhelper.h(304): error C2143: syntax error: missing ';' before '{' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(96): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(103): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(105): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(115): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(96): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(96): error C2059: syntax error: '==' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(103): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(103): error C2059: syntax error: '==' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(105): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(105): error C2059: syntax error: '==' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(115): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(115): error C2059: syntax error: '==' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1172): error C2661: 'onnxruntime::Model::Model': no overloaded function takes 2 arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1181): error C2039: 'SetModelversion': is not a member of 'onnxruntime::Model' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.h(23): note: see declaration of 'onnxruntime::Model' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1209): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1209): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1209): error C2059: syntax error: ';' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1210): error C2039: 'TraverseGraphGetFirstPath': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1210): error C2039: 'nextFunction': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1210): error C2039: 'path': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1210): error C2039: 'visited': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1210): error C2065: 'TraverseGraphGetFirstPath': undeclared identifier 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1212): error C2039: 'path': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(1212): error C2039: 'push_back': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2109): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2109): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2109): error C2059: syntax error: ':' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2118): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2118): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2118): error C2059: syntax error: ')' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2121): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2121): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2121): error C2059: syntax error: ';' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2122): error C2039: 'i': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2122): error C2039: 'opSequence': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2122): error C2039: 'size': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2132): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2132): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2132): error C2059: syntax error: ':' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2162): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2162): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2162): error C2059: syntax error: '&&' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2163): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2163): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2188): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2188): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2188): error C2059: syntax error: ';' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2189): error C2039: 'parentNode': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2189): error C2039: 'OpName': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2191): error C3536: 'parentNode': cannot be used before it is initialized 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2194): error C3536: 'input': cannot be used before it is initialized 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2196): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2196): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2196): error C2059: syntax error: '->' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2513): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2513): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2513): error C2059: syntax error: '?' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2515): error C2039: 'X': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2580): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2580): error C2976: 'gsl::owner': too few template arguments 3>fixtures.cpp 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2580): error C2059: syntax error: ')' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2581): error C2143: syntax error: missing ';' before '{' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2582): warning C4003: not enough arguments for function-like macro invocation 'Owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2582): error C2976: 'gsl::owner': too few template arguments 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\onnxruntime\onnxruntime\gsl\gsl-lite.hpp(724): note: see declaration of 'gsl::owner' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2582): error C2059: syntax error: ',' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2584): error C2039: 'nodeInputs': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2584): error C2039: 'push_back': is not a member of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\api\cntklibrary.h(1917): note: see declaration of 'CNTK::Variable' 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2586): error C2181: illegal else without matching if 2>e:\opencode\cntk-master\source\cntkv2librarydll\proto\onnx\cntktoonnx.cpp(2580): fatal error C1903: unable to recover from previous error(s); stopping compilation 2>INTERNAL COMPILER ERROR in 'D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe'

how to fix this