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

Method FillDescription

tensorflow/core/framework/tensor.cc:1314–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1312}
1313
1314void Tensor::FillDescription(TensorDescription* description) const {
1315 description->set_dtype(dtype());
1316 shape().AsProto(description->mutable_shape());
1317 if (buf_ != nullptr && buf_->data() != nullptr) {
1318 buf_->FillAllocationDescription(
1319 description->mutable_allocation_description());
1320 }
1321}
1322
1323gtl::InlinedVector<int64, 4> Tensor::ComputeFlatInnerDims(
1324 gtl::ArraySlice<int64> orig, int64 num_out_dims) {

Callers 5

allocate_persistentMethod · 0.45
RecordTensorOutputMethod · 0.45
SetOutputMethod · 0.45
SetReferencedTensorsMethod · 0.45

Calls 7

dtypeFunction · 0.50
shapeFunction · 0.50
set_dtypeMethod · 0.45
AsProtoMethod · 0.45
mutable_shapeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected