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

enable parameterizing init state #3

Open
marwan116 opened this issue Nov 5, 2023 · 0 comments
Open

enable parameterizing init state #3

marwan116 opened this issue Nov 5, 2023 · 0 comments

Comments

@marwan116
Copy link
Owner

Currently, we perform the following:

    def init(self, func) -> None:
        self._initializers[func.__name__] = func

        def constructor(obj):
            for (
                initializer_name,
                initializer,
            ) in self._initializers.items():
                setattr(obj, initializer_name, initializer())

Current implementation assumes that all initiliazer functions don't accept any arguments

Fix it so that it accepts arguments and those argument values can be passed to RayCraftAPI.__call__

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

No branches or pull requests

1 participant