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

Method TensorShapeOld

tensorflow/core/framework/tensor_shape_test.cc:382–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382TensorShapeOld::TensorShapeOld(const TensorShapeProto& proto) {
383 dim_sizes_.reserve(proto.dim_size());
384 num_elements_ = 1;
385 for (const auto& d : proto.dim()) {
386 AddDim(d.size());
387 }
388}
389
390TensorShapeOld::TensorShapeOld(gtl::ArraySlice<int64> dim_sizes) {
391 dim_sizes_.reserve(dim_sizes.size());

Callers

nothing calls this directly

Calls 4

reserveMethod · 0.45
dim_sizeMethod · 0.45
dimMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected