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

Method AsProto

tensorflow/core/framework/tensor_shape.cc:592–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590
591template <class Shape>
592void TensorShapeBase<Shape>::AsProto(TensorShapeProto* proto) const {
593 proto->Clear();
594 if (unknown_rank()) {
595 proto->set_unknown_rank(true);
596 } else {
597 for (int i = 0; i < dims(); i++) {
598 proto->add_dim()->set_size(dim_size(i));
599 }
600 }
601}
602
603void TensorShapeRep::DumpRep() const {
604#if 0

Callers 15

EnqueueTensorCollectiveFunction · 0.45
EnqueueTensorCollectiveFunction · 0.45
TESTFunction · 0.45
AddRequestMethod · 0.45
GrpcRecvTensorAsyncMethod · 0.45
HanldeWhileLoopFunction · 0.45
HandleIfOPFunction · 0.45
SetTransferFunction · 0.45
TESTFunction · 0.45
ComputeMethod · 0.45
TestConvertConstFunction · 0.45
CreateTRTNodeFunction · 0.45

Calls 3

dimsFunction · 0.85
ClearMethod · 0.45
set_sizeMethod · 0.45

Tested by 9

TESTFunction · 0.36
TESTFunction · 0.36
TestConvertConstFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36