src/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
6 / 6
100.0%
Branches:
2 / 4
50.0%
Functions:
1 / 1
100.0%

ps/base/parameters.cpp
Line Branch Exec Source
1 #include "base/flatc.h"
2 #include "parameters.h"
3
4 1686 void Pack<ParameterCompressItem>::CompressAppend(std::string* output) const {
5 ParameterCompressItem item;
6 1686 item.key = key;
7 1686 item.dim = dim;
8
1/2
✓ Branch 1 taken 1686 times.
✗ Branch 2 not taken.
1686 output->append(
9 reinterpret_cast<const char*>(&item), sizeof(ParameterCompressItem));
10
1/2
✓ Branch 1 taken 1686 times.
✗ Branch 2 not taken.
1686 output->append(reinterpret_cast<const char*>(emb_data), dim * sizeof(float));
11 1686 };
12