| 627 | void TFE_DeleteOp(TFE_Op* op) { delete op; } |
| 628 | |
| 629 | void TFE_OpSetDevice(TFE_Op* op, const char* device_name, TF_Status* status) { |
| 630 | status->status = op->operation.SetDeviceName(device_name); |
| 631 | } |
| 632 | |
| 633 | const char* TFE_OpGetDevice(TFE_Op* op, TF_Status* status) { |
| 634 | tensorflow::Device* device = (op->operation.Device() == nullptr) |