Skip to content

[Metrics] Fix serialization for custom metrics#13571

Merged
edoakes merged 2 commits intoray-project:masterfrom
architkulkarni:serialize-custom-metrics
Jan 22, 2021
Merged

[Metrics] Fix serialization for custom metrics#13571
edoakes merged 2 commits intoray-project:masterfrom
architkulkarni:serialize-custom-metrics

Conversation

@architkulkarni
Copy link
Copy Markdown
Contributor

Why are these changes needed?

Overrides __reduce__ methods in custom metrics to make them serializable. Some serialization has been added to the end-to-end custom metrics test to test this.

Related issue number

Closes #10564.

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@architkulkarni architkulkarni added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label Jan 20, 2021
@edoakes edoakes merged commit 0c3d9a3 into ray-project:master Jan 22, 2021
fishbone pushed a commit to fishbone/ray that referenced this pull request Feb 16, 2021
fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-ok The tagger certifies test failures are unrelated and assumes personal liability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Metrics] Custom metrics are not serializable.

3 participants