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

Function UnsafeGetDimsFromIx

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

Source from the content-addressed store, hash-verified

272 }
273
274 static int UnsafeGetDimsFromIx(const Tensor& ix) {
275 DCHECK(TensorShapeUtils::IsMatrix(ix.shape()));
276 return ix.dim_size(1);
277 }
278
279 static inline ShapeArray UndefinedOrder(const VarDimArray shape) {
280 return ShapeArray(shape.size(), -1);

Callers 2

SparseTensorFunction · 0.85
sparse_tensor.hFile · 0.85

Calls 2

shapeMethod · 0.45
dim_sizeMethod · 0.45

Tested by

no test coverage detected