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

Refactor compile method for kfp and vertex #522

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

PhilippeMoussalli
Copy link
Contributor

PR that refactors the compiler module:

  • set_configuration() is added as an abstract method since it's implemented in all of the compilers
  • Since kfp and vertex have the same compile method, the compile() method is now defined in the kfp compiler and the vertex compiler is now it's child class. Other methods like resolve_imports() and set_configuration are overridden

@PhilippeMoussalli PhilippeMoussalli linked an issue Oct 16, 2023 that may be closed by this pull request
Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -27,6 +27,10 @@ class Compiler(ABC):
def compile(self, *args, **kwargs) -> None:
"""Abstract method to invoke compilation."""

@abstractmethod
def set_configuration(self, *args, **kwargs) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to make this a public method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed indeed, will revert it

@RobbeSneyders RobbeSneyders merged commit a259583 into main Oct 16, 2023
6 checks passed
@RobbeSneyders RobbeSneyders deleted the refactor-compiler branch October 16, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combine kubeflow and Vertex Compiler
2 participants