| 44 | } |
| 45 | |
| 46 | string EagerOperation::DebugString() const { |
| 47 | string out; |
| 48 | VLOG(1) << "EagerOperation::DebugString() over " << this; |
| 49 | |
| 50 | strings::StrAppend(&out, "Name: ", name_, "\n"); |
| 51 | strings::StrAppend(&out, "Device Name: [", |
| 52 | DeviceNameUtils::ParsedNameToString(device_name_), "]\n"); |
| 53 | strings::StrAppend( |
| 54 | &out, "Device: ", Device() ? Device()->DebugString() : "[]", "\n"); |
| 55 | for (const auto& input : inputs_) { |
| 56 | VLOG(1) << "Input ptr: " << input; |
| 57 | strings::StrAppend(&out, "Input: ", input->DebugString(), "\n"); |
| 58 | } |
| 59 | |
| 60 | NodeDef ndef; |
| 61 | Attrs().FillAttrValueMap(ndef.mutable_attr()); |
| 62 | strings::StrAppend(&out, "Attrs: ", ndef.DebugString(), "\n"); |
| 63 | return out; |
| 64 | } |
| 65 | |
| 66 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected