Added .clang-format file and formatted everything
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
parent
f731f2e55c
commit
24cd307042
47 changed files with 5157 additions and 4354 deletions
|
|
@ -27,16 +27,15 @@ TEST(TestDestroy, TestDestroyTensorSingle)
|
|||
{
|
||||
kp::Manager mgr;
|
||||
|
||||
const std::vector<float> initialValues = {0.0f, 0.0f, 0.0f};
|
||||
const std::vector<float> initialValues = { 0.0f, 0.0f, 0.0f };
|
||||
|
||||
tensorA = mgr.tensor(initialValues);
|
||||
|
||||
std::shared_ptr<kp::Algorithm> algo =
|
||||
mgr.algorithm({tensorA}, spirv);
|
||||
mgr.algorithm({ tensorA }, spirv);
|
||||
|
||||
// Sync values to and from device
|
||||
mgr.sequence()
|
||||
->eval<kp::OpTensorSyncDevice>(algo->getTensors());
|
||||
mgr.sequence()->eval<kp::OpTensorSyncDevice>(algo->getTensors());
|
||||
|
||||
EXPECT_EQ(tensorA->vector(), initialValues);
|
||||
|
||||
|
|
@ -45,7 +44,7 @@ TEST(TestDestroy, TestDestroyTensorSingle)
|
|||
->eval()
|
||||
->eval<kp::OpTensorSyncLocal>(algo->getTensors());
|
||||
|
||||
const std::vector<float> expectedFinalValues = {1.0f, 1.0f, 1.0f};
|
||||
const std::vector<float> expectedFinalValues = { 1.0f, 1.0f, 1.0f };
|
||||
EXPECT_EQ(tensorA->vector(), expectedFinalValues);
|
||||
|
||||
tensorA->destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue