Skip to content

Conversation

@Lepsps
Copy link
Collaborator

@Lepsps Lepsps commented May 13, 2025

No description provided.

@Lepsps Lepsps requested review from allnes and aobolensk as code owners May 13, 2025 14:12
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);
Copy link
Member

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");

Comment on lines +23 to +30

# REPORT
message( STATUS "")
message( STATUS "General configuration for ${PROJECT_NAME}")
message( STATUS "======================================")
message( STATUS "")
message( STATUS " Configuration: ${CMAKE_BUILD_TYPE}")
message( STATUS "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Comment on lines +11 to +20
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)
Copy link
Member

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)
Copy link
Member

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.

Copy link
Member

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)
Copy link
Member

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)
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants