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

Function GetNodeExecutionRangeMessage

tensorflow/core/profiler/nvtx_utils.h:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62// messages is significantly more expensive.
63template <typename InputContainer, class InputToTensorFunc>
64inline string GetNodeExecutionRangeMessage(
65 const OpKernel* kernel, size_t num_inputs, const InputContainer& inputs,
66 InputToTensorFunc input_to_tensor_fn) {
67 gtl::InlinedVector<const Tensor*, 4> input_tensors;
68 input_tensors.reserve(num_inputs);
69 for (int i = 0; i < num_inputs; ++i) {
70 input_tensors.push_back(input_to_tensor_fn(inputs[i]));
71 }
72 return detail::GetNodeExecutionRangeMessageImpl(kernel, input_tensors);
73}
74
75string GetThunkExecutionRangeMessage(absl::string_view cluster_name,
76 absl::string_view op_name,

Callers 2

RunMethod · 0.85
ScopedRangeIfEnabledMethod · 0.85

Calls 3

reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected