MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IndicesValid

Function IndicesValid

tensorflow/core/util/sparse/sparse_tensor.h:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

FailedPreconditionFunction · 0.85
num_entriesFunction · 0.85
IndexValidFunction · 0.85

Tested by

no test coverage detected