Skip to content

Commit

Permalink
Fix PEFTModelID::NO_ID reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Flechman authored May 25, 2024
1 parent 7e3d111 commit 079ba59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/c/flexflow_c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2846,9 +2846,9 @@ flexflow_peft_model_id_t flexflow_peft_model_id_create_id(size_t id) {
}

flexflow_peft_model_id_t flexflow_peft_model_id_no_id() {
PEFTModelID handle = PEFTModelID::NO_ID;
DEBUG_PRINT("[PEFTModelID] new %p", &handle);
return FFCObjectWrapper::wrap(&handle);
PEFTModelID *handle = const_cast<PEFTModelID*>(&PEFTModelID::NO_ID);
DEBUG_PRINT("[PEFTModelID] new %p", handle);
return FFCObjectWrapper::wrap(handle);
}

void flexflow_peft_model_id_destroy(flexflow_peft_model_id_t handle_) {
Expand Down

0 comments on commit 079ba59

Please sign in to comment.