| 158 | } |
| 159 | |
| 160 | inline void Fill(const qint32* data, size_t n, TensorProto* t) { |
| 161 | const int32* p = reinterpret_cast<const int32*>(data); |
| 162 | typename protobuf::RepeatedField<int32> copy(p, p + n); |
| 163 | t->mutable_int_val()->Swap(©); |
| 164 | } |
| 165 | |
| 166 | // Custom implementation for Eigen::half. |
| 167 |