Skip to content
Snippets Groups Projects
Commit 7ba99e2d authored by Maxence Naud's avatar Maxence Naud
Browse files

[WIP][NF] Start Tensor changes

- [Add] ``zeros()`` member function to set implpementation elements to 0
- [unit_tests][NF] Add many more cases in Test_TensorImpl.cpp
- [include] update includes in Tensor.hpp
parent 3cd6469a
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!89Increase the number of unit-tests for Tensor
...@@ -74,8 +74,6 @@ TEST_CASE("[backend/cpu/data] Tensor", "[Tensor]") { ...@@ -74,8 +74,6 @@ TEST_CASE("[backend/cpu/data] Tensor", "[Tensor]") {
x = Array3D<int, 2, 2, 2>{{{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}}; x = Array3D<int, 2, 2, 2>{{{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}};
REQUIRE_NOTHROW(x.print()); REQUIRE_NOTHROW(x.print());
} }
}
}
TEST_CASE("Tensor fill") { TEST_CASE("Tensor fill") {
SECTION("Instantiate batches independantly") { SECTION("Instantiate batches independantly") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment