Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/GenericModel.from_model_deployment() fails to load model back #322

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

mingkang111
Copy link
Member

@mingkang111 mingkang111 commented Sep 8, 2023

Description

Jira: https://jira.oci.oraclecorp.com/browse/ODSC-46919
Failed to load model from given model deployment ocid. The root cause of it is that The properties of the model_deployment object have not been constructed correctly. It only contains displayName.
To fix it, we need to pass the oci_model get from OCIDataScienceModelDeployment.from_id(id) into the constructor of ModelDeployment to get full properties.

Changed

Pass the oci_model get from OCIDataScienceModelDeployment.from_id(id) into the constructor of ModelDeployment.

pre-commit

Screenshot 2023-09-08 at 2 58 00 PM

Test

  • from_model_deployment()
    Screenshot 2023-09-08 at 3 29 15 PM

  • from_id()
    Screenshot 2023-09-08 at 3 31 51 PM

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 8, 2023
@github-actions
Copy link

github-actions bot commented Sep 8, 2023

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-71.69%

@mingkang111 mingkang111 merged commit 8072892 into main Sep 12, 2023
13 checks passed
@mingkang111 mingkang111 deleted the fix/odsc_4919_genericmodel_from_model_deployment branch September 12, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants