Conversation
|
Does msgpack respect these methods? I'm curious to see how this would operate with Blockwise. We can do this as future work of course. I'm exctied :) |
Not natively but the changes in dask/distributed#4140 makes msgpack call |
|
|
The issue is that |
|
@jrbourbeau if CI passes, I think this is ready to be merged. |
jrbourbeau
left a comment
There was a problem hiding this comment.
Thanks @madsbk!
There was John's comment (dask/distributed#4140 (comment)) about not using __reduce__ and instead defining separate methods. I'm happy to revisit that later and go with this for now to not block progress on dask/distributed#4140
This PR implements a default serialization of
Layer. In order to be compatible with pickle, we use the__reduce__protocol but for security reasons Distributed usesmsgpackfor serialization when communicating with the scheduler thus this must also be compatible withmsgpack(see dask/distributed#4140).black dask/flake8 dask