Open mohamed-180 opened 3 years ago
Hi, Thanks for asking. Yes, as of version 2.6 tf_function()
calls autograph()
by default for you and there is no need to call it yourself. The example in the "Advanced Quickstart" needs to be updated. Though, it's harmless to call autograph()
on a function twice, so the example should still work even if it is a little verbose.
from the advanced tutorial in Advanced Quickstart the part of :
can we just use
tf_function
with out theautograph
function based ontf_function
have argument to use autograph see : https://github.com/rstudio/tensorflow/blob/e3791c4dbd685e5f8788c1bf4902c7cc70dea477/R/eager.R#L126-L145 and useautograph
function only in case of executing eagerly.