| 168 | DataType dtype() const { return vals_.dtype(); } |
| 169 | |
| 170 | Status IndicesValid() const { |
| 171 | const auto ix_t = ix_.matrix<int64>(); |
| 172 | for (int64 ord : order_) { |
| 173 | if (ord < 0) { |
| 174 | return errors::FailedPrecondition( |
| 175 | "Order was not provided. Provide an order at " |
| 176 | "construction time or run ReorderInPlace"); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | for (std::size_t n = 0; n < num_entries(); ++n) { |
| 181 | TF_RETURN_IF_ERROR(IndexValid(ix_t, n)); |
| 182 | } |
| 183 | |
| 184 | return Status::OK(); |
| 185 | } |
| 186 | |
| 187 | VarDimArray shape() const { return shape_; } |
| 188 |
nothing calls this directly
no test coverage detected