-
Notifications
You must be signed in to change notification settings - Fork 5
Layers #54
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
base: main
Are you sure you want to change the base?
Layers #54
Conversation
src/layer/ReshapeLayer.cpp
Outdated
| if (input.data.size() != output.data.size()) { | ||
| throw std::runtime_error("ReshapeLayerMock: Input and output data buffer sizes mismatch."); | ||
| } | ||
| std::fill(output.data.begin(), output.data.end(), static_cast<double>(getID()) + 0.9); |
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.
Please, replace stub implementations with throw std::logic_error("Not yet implemented");
|
|
||
| # REPORT | ||
| message( STATUS "") | ||
| message( STATUS "General configuration for ${PROJECT_NAME}") | ||
| message( STATUS "======================================") | ||
| message( STATUS "") | ||
| message( STATUS " Configuration: ${CMAKE_BUILD_TYPE}") | ||
| message( STATUS "") |
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.
Is this needed?
| include(FetchContent) | ||
| FetchContent_Declare( | ||
| googletest | ||
| GIT_REPOSITORY https://github.com/google/googletest.git | ||
| GIT_TAG v1.14.0 | ||
| ) | ||
| FetchContent_MakeAvailable(googletest) | ||
|
|
||
|
|
||
| #add_subdirectory(3rdparty/googletest) |
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.
We already have googletest integrated, why do we need this? Please, revert
| @@ -1,15 +1,30 @@ | |||
| cmake_minimum_required(VERSION 3.20) | |||
| set(CMAKE_CXX_STANDARD 11) | |||
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.
C++11 is too low. If you need to specify the standard then it should be at least 17.
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.
I'm not sure that changes in this file are required. It could be reverted as well
| target_link_libraries(run_tests PUBLIC | ||
| gtest_main | ||
| ) | ||
| file(GLOB_RECURSE TEST_FILES ./*.cpp) |
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.
Please, avoid using relative paths, use ${CMAKE_CURRENT_SOURCE_DIR} for referencing current directory
|
|
||
| project(cpp_template) | ||
|
|
||
| include(cmake/configure.cmake) |
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 cmake/configure.cmake was excluded? some useful settings are listed there (e.g. including standard)
No description provided.