Protected method for constructors
| 267 | |
| 268 | /// Protected method for constructors |
| 269 | void SetData(const std::shared_ptr<ArrayData>& data) { |
| 270 | if (data->buffers.size() > 0) { |
| 271 | null_bitmap_data_ = data->GetValuesSafe<uint8_t>(0, /*offset=*/0); |
| 272 | } else { |
| 273 | null_bitmap_data_ = NULLPTR; |
| 274 | } |
| 275 | data_ = data; |
| 276 | } |
| 277 | |
| 278 | /// Implementation of ToTensor with nulls as undefined. |
| 279 | virtual Result<std::shared_ptr<Tensor>> ToTensorWithNulls() const; |
no test coverage detected