tensorflow-plot icon indicating copy to clipboard operation
tensorflow-plot copied to clipboard

Potential performance improvement using multiprocess

Open wookayin opened this issue 6 years ago • 1 comments

GIL sucks.

One alternative way to make it much faster would be to serialize the function body (what if it contains closure?) and execute the function in a multiprocess fashion (e.g. from a child process). This is quite tricky in general.

wookayin avatar Mar 09 '19 20:03 wookayin

Another crazy idea is that we can draw the plot lazily by storing the Tensor arguments and the function body (serialized, cannot contain closures, maybe) into summary eventfiles and then executing the plot code from the tensorboard process. A custom tensorboard extension will be needed to make it work.

wookayin avatar Mar 09 '19 20:03 wookayin