| 1308 | } // namespace |
| 1309 | |
| 1310 | bool 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, ®, &was_attr_mismatch); |
| 1316 | return result.ok() && reg != nullptr; |
| 1317 | } |
| 1318 | |
| 1319 | // TODO(irving): Change const NodeDef& to const Node& |
| 1320 | Status FindKernelDef( |
no test coverage detected