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

Function KernelDefAvailable

tensorflow/core/framework/op_kernel.cc:1310–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1308} // namespace
1309
1310bool KernelDefAvailable(const DeviceType& device_type,
1311 const NodeDef& node_def) {
1312 const KernelRegistration* reg = nullptr;
1313 bool was_attr_mismatch;
1314 Status result =
1315 FindKernelRegistration(device_type, node_def, &reg, &was_attr_mismatch);
1316 return result.ok() && reg != nullptr;
1317}
1318
1319// TODO(irving): Change const NodeDef& to const Node&
1320Status FindKernelDef(

Callers 1

IsConstantFoldableFunction · 0.85

Calls 2

FindKernelRegistrationFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected