| 565 | TF_Buffer TF_GetOpList(TF_Library* lib_handle) { return lib_handle->op_list; } |
| 566 | |
| 567 | void TF_DeleteLibraryHandle(TF_Library* lib_handle) { |
| 568 | if (lib_handle == nullptr) return; |
| 569 | tensorflow::port::Free(const_cast<void*>(lib_handle->op_list.data)); |
| 570 | delete lib_handle; |
| 571 | } |
| 572 | |
| 573 | TF_Buffer* TF_GetAllOpList() { |
| 574 | std::vector<tensorflow::OpDef> op_defs; |