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

Function TensorShapeToVector

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

Source from the content-addressed store, hash-verified

281 }
282
283 static inline ShapeArray TensorShapeToVector(const TensorShape& shape) {
284 ShapeArray vec(shape.dims());
285 for (int i = 0; i < shape.dims(); ++i) vec[i] = shape.dim_size(i);
286 return vec;
287 }
288
289 // Helper for IndicesValid()
290 inline Status IndexValid(const TTypes<int64>::ConstMatrix& ix_t,

Callers 3

InputIndexerMethod · 0.85
CreateFunction · 0.85
SparseTensorFunction · 0.85

Calls 2

dimsMethod · 0.45
dim_sizeMethod · 0.45

Tested by

no test coverage detected