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

Method Display

tensorflow/core/profiler/internal/tfprof_tensor.cc:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace tensorflow {
19namespace tfprof {
20void TFProfTensor::Display(string* formatted_str,
21 TFProfTensorProto* tfprof_tensor_pb) {
22 if (formatted_str) {
23 if (formatted_str_.length() >= kTFProfTenosrMaxDisplayLen) {
24 *formatted_str =
25 strings::StrCat(formatted_str_, "...omitted from display\n\n");
26 } else {
27 *formatted_str = formatted_str_;
28 }
29 }
30 if (tfprof_tensor_pb) {
31 tfprof_tensor_pb->MergeFrom(tfprof_tensor_pb_);
32 }
33}
34
35void TFProfTensor::Build() {
36 tfprof_tensor_pb_.set_dtype(tensor_->dtype());

Callers 2

PrintGraphMethod · 0.80
PrintScopeMethod · 0.80

Calls 2

StrCatFunction · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected