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

Method AsProto

tensorflow/core/framework/tensor_shape_test.cc:464–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464void TensorShapeOld::AsProto(TensorShapeProto* proto) const {
465 proto->Clear();
466 for (size_t d = 0; d < dim_sizes_.size(); ++d) {
467 auto* dim = proto->add_dim();
468 dim->set_size(dim_sizes_[d]);
469 }
470}
471
472TensorShapeIterOld TensorShapeOld::begin() const {
473 return TensorShapeIterOld(this, 0);

Callers 1

TESTFunction · 0.45

Calls 3

ClearMethod · 0.45
sizeMethod · 0.45
set_sizeMethod · 0.45

Tested by

no test coverage detected