| 1775 | } |
| 1776 | |
| 1777 | Status CreateNonCachedKernel(Device* device, FunctionLibraryRuntime* flib, |
| 1778 | const NodeDef& ndef, int graph_def_version, |
| 1779 | OpKernel** kernel) { |
| 1780 | const auto device_type = DeviceType(device->attributes().device_type()); |
| 1781 | auto allocator = device->GetAllocator(AllocatorAttributes()); |
| 1782 | return CreateOpKernel(device_type, device, allocator, flib, ndef, |
| 1783 | graph_def_version, kernel); |
| 1784 | } |
| 1785 | |
| 1786 | void DeleteNonCachedKernel(OpKernel* kernel) { delete kernel; } |
| 1787 |