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

Trigger for using user custom functions #789

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

linshokaku
Copy link
Member

close #774

if not self._interval_trigger(manager):
return False

return self._fn(*self._args, **self._kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be good to add something like the current iteration/epoch as positional arguments

Copy link
Member Author

Choose a reason for hiding this comment

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

If iteration or epoch information is needed, it is assumed that users will implement a function that explicitly takes manager as an argument, and pass manager to args/kwargs to achieve this.

@emcastillo
Copy link
Contributor

/test

@emcastillo emcastillo merged commit c44da92 into pfnet:master Nov 28, 2023
17 checks passed
@linshokaku linshokaku added this to the v0.7.5 milestone Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom function trigger
3 participants