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

Function NodeIsOnGpu

tensorflow/core/grappler/utils.cc:231–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool NodeIsOnGpu(const NodeDef* node) {
232 string task, device;
233 return DeviceNameUtils::SplitDeviceName(node->device(), &task, &device) &&
234 absl::StartsWith(device, DEVICE_GPU);
235}
236
237int NumOutputs(const NodeDef& node, GraphDef* graph) {
238 int num_outputs = 0;

Callers 5

FindConcatWithCastFunction · 0.85
IsGpuCompatibleConv2DFunction · 0.85
IsGpuCompatibleMatMulFunction · 0.85
FindFusedBatchNormExFunction · 0.85
FusedMatMulRewriteMethod · 0.85

Calls 2

StartsWithFunction · 0.85
deviceMethod · 0.45

Tested by

no test coverage detected