-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Askhade/implement erf #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/AzurePipelines run all |
|
Success! 1 created and queued. |
cmake/CMakeLists.txt
Outdated
| # fix a warning in onnx code we can't do anything about | ||
| if (MSVC) | ||
| target_compile_options(onnx_proto PRIVATE /wd4146) # unary minus operator applied to unsigned type | ||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W1 -DEIGEN_HAS_C99_MATH /MP") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary for using Eigen erf. Without this compilation fails. You can check SpecialFunctionsImpl.h
Although now I do think this may not be the right place to add this... may be line 104 is a better place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-W1
Don't change the warning level globally. /W3 or /W4 is mandatory. You may disable a specific warning for a specific file or vc project.
-DEIGEN_HAS_C99_MATH
By default, Eigen strive to automatically detect and enable langage features at compile-time based on the information provided by the compiler. If it doesn't work, let's find out why. At lease we need a reason and a comment for this flag.
/MP
It's duplicated with line 301. Please remove it or merge them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERF requires C++11 and C99
In case of MSVC C99 needs to be set explicitly
1. Remove "using namespace onnx" from header files 2. onnx_test_runner: combine input/output data into a single file for each dataset. 3. onnx_test_runner: change the way how finished event was sent, to fix a crash on exit bug. 4. cmake: Cleanup include_directories, change it to target_include_directories, so that it only make effect on special targets. 5. cmake: remove lotusIR_graph_obj and lotus_common_obj target 6. cmake: perfer to use prebuilt zlib library 7. cloudtest: disable "LotusModelTest.resnet50.debug" and "LotusModelTest.vgg19.debug". They run too long. 8. cloudtest: add 6 models. coreml_SVC_sklearn_load_wine,coreml_SVC_sklearn_load_breast_cancer,coreml_SVC_OpenML_1464_blood_transfusion,coreml_SVC_OpenML_312_scene,coreml_SVR_sklearn_load_boston,coreml_SVR_sklearn_load_diabetes 9. logging: move the implementation of OStreamSink to a ".cc" file, so that users of it has no dependency on the "date" library. Related work items: #137
1. Remove using namespace from headers under lotus/core 2. Fix a tiny bug in ExecutionFrame::ReleaseMLValue function Related work items: #137
This reverts commit 11f0f4c.
No description provided.