| 76 | } |
| 77 | |
| 78 | void TF_CloseWritableFile(TF_WritableFileHandle* handle, TF_Status* status) { |
| 79 | auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle); |
| 80 | TF_SetStatus(status, TF_OK, ""); |
| 81 | ::tensorflow::Set_TF_Status_from_Status(status, cc_file->Close()); |
| 82 | delete cc_file; |
| 83 | } |
| 84 | |
| 85 | void TF_SyncWritableFile(TF_WritableFileHandle* handle, TF_Status* status) { |
| 86 | auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle); |