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

Function GetTFTraceMeLevel

tensorflow/core/profiler/lib/traceme.h:36–36  ·  view source on GitHub ↗

This is specifically used for instrumenting Tensorflow ops. Takes input as whether a TF op is expensive or not and returns the TraceMe level to be assigned to trace that particular op. Assigns level 2 for expensive ops (these are high-level details and shown by default in profiler UI). Assigns level 3 for cheap ops (low-level details not shown by default).

Source from the content-addressed store, hash-verified

34// expensive ops (these are high-level details and shown by default in profiler
35// UI). Assigns level 3 for cheap ops (low-level details not shown by default).
36inline int GetTFTraceMeLevel(bool is_expensive) { return is_expensive ? 2 : 3; }
37
38// Predefined levels:
39// - Level 1 (kCritical) is the default and used only for user instrumentation.

Callers 6

MightTraceFunction · 0.85
ProcessSyncMethod · 0.85
ProcessAsyncMethod · 0.85
ScheduleReadyMethod · 0.85
PropagateOutputsMethod · 0.85
PropagateOutputsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected