| 98 | }; |
| 99 | |
| 100 | std::unique_ptr<OpKernel> GetKernel(const NodeDef& node, |
| 101 | const DeviceType& device_type, |
| 102 | DeviceBase* device) { |
| 103 | Status status; |
| 104 | std::unique_ptr<OpKernel> k = CreateOpKernel( |
| 105 | device_type, device, device->GetAllocator(AllocatorAttributes()), node, |
| 106 | TF_GRAPH_DEF_VERSION, &status); |
| 107 | if (!status.ok()) { |
| 108 | LOG(FATAL) << status; |
| 109 | } |
| 110 | return k; |
| 111 | } |
| 112 | |
| 113 | static int64 kStepId = 123; |
| 114 |
no test coverage detected