| 180 | |
| 181 | namespace internal { |
| 182 | void SetTensorProtoShape(std::vector<size_t> shape, |
| 183 | TensorShapeProto* shape_proto) { |
| 184 | for (auto dim : shape) { |
| 185 | shape_proto->mutable_dim()->Add()->set_size(dim); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | template <typename T> |
| 190 | bool CompressTensorContent(float min_compression_ratio, |
no test coverage detected