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