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

Function SetTensorProtoShape

tensorflow/core/framework/tensor_util.cc:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181namespace internal {
182void SetTensorProtoShape(std::vector<size_t> shape,
183 TensorShapeProto* shape_proto) {
184 for (auto dim : shape) {
185 shape_proto->mutable_dim()->Add()->set_size(dim);
186 }
187}
188
189template <typename T>
190bool CompressTensorContent(float min_compression_ratio,

Callers 1

CreateTensorProtoFunction · 0.85

Calls 2

set_sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected