| 1472 | } |
| 1473 | |
| 1474 | std::unique_ptr<OpKernel> CreateOpKernel( |
| 1475 | DeviceType device_type, DeviceBase* device, Allocator* allocator, |
| 1476 | const NodeDef& node_def, int graph_def_version, Status* status) { |
| 1477 | OpKernel* kernel = nullptr; |
| 1478 | *status = CreateOpKernel(std::move(device_type), device, allocator, nullptr, |
| 1479 | node_def, graph_def_version, &kernel); |
| 1480 | return std::unique_ptr<OpKernel>(kernel); |
| 1481 | } |
| 1482 | |
| 1483 | Status CreateOpKernel(DeviceType device_type, DeviceBase* device, |
| 1484 | Allocator* allocator, FunctionLibraryRuntime* flib, |