Fix implicit double -> float truncation warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2022-05-13 19:06:51 +01:00
parent 177fd72f5f
commit 345ed58ed5
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ TEST(NoInferenceModelRunner, AccessTensors) {
std::vector<int64_t>{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.data(),
10 * sizeof(int64_t));
std::memcpy(NIMR.getTensor<float>(2),
std::vector<float>{0.1, 0.2, 0.3, 0.4, 0.5}.data(),
std::vector<float>{0.1f, 0.2f, 0.3f, 0.4f, 0.5f}.data(),
5 * sizeof(float));
ASSERT_EQ(NIMR.getTensor<int64_t>(0)[0], 1);
ASSERT_EQ(NIMR.getTensor<int64_t>(1)[8], 9);