\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
py_fun_json#
View page sourceJson Representation of AD Computation Graph#
Syntax#
json = f
.to_json ()f
.from_json(json )f#
This is a d_fun function object.
json#
is a str containing
a Json representation of the computation graph corresponding to
f ; see the CppAD documentation for
json_ad_graph.
to_json#
In this case, the function object f is constant and the return value json is created.
from_json#
In this case, the argument json is constant and the function f is changed so it corresponds to json .
Examples#
fun_to_json_xam.py, fun_from_json_xam.py.