Is there any way to save the parameter of the autotuning ? #14539
Replies: 7 comments
-
Hi, which autotuning are you talking about? Is it something like "Finding the best convolution algorithm..."? |
Beta Was this translation helpful? Give feedback.
-
@haojin2 yes, that is what i mean, the program autotune every time when it is launched, even though the program is not modified |
Beta Was this translation helpful? Give feedback.
-
Well it's kind of a necessary step for now if you're using CuDNN, TF also has this tuning part for the CuDNN version. It's finding the fastest convolution algorithm given the memory constraints of your GPU. I think what you just said (caching the tuning result on the same machine) may be a way to save some time, I'll take a look into this ASAP and get back to you. |
Beta Was this translation helpful? Give feedback.
-
@haojin2 Thanks ! and I know that tvm got something similar function which can tune conv layer or fullyconnected layer and save the tuned result to the model, so it can be loaded next time without tuning again. but such function seems not exist in mxnet. |
Beta Was this translation helpful? Give feedback.
-
@ptrendx @DickJC123 @KellenSunderland do you have an idea here? |
Beta Was this translation helpful? Give feedback.
-
I think @KellenSunderland had a solution for that, see my issue here: #10567 that would definitely be helpful |
Beta Was this translation helpful? Give feedback.
-
Yes we've got a solution we use internally but it's not fleshed out enough to open source. Could we possibly run a graph pass then save the graph with the tuning result serialized in an aux param or something? (Then pick up the param results if we use that version of the graph). |
Beta Was this translation helpful? Give feedback.
-
Is there any way to save the parameter of the autotuning so it won't have to find the best algorithms every time when program is launched ? thanks !
Beta Was this translation helpful? Give feedback.
All reactions