view_function_graph {tfautograph} | R Documentation |
Visualizes the generated graph
Description
Visualizes the generated graph
Usage
view_function_graph(
fn,
args,
...,
name = deparse(substitute(fn)),
profiler = FALSE,
concrete_fn = do.call(fn$get_concrete_fn, args),
graph = concrete_fn$graph
)
Arguments
fn |
TensorFlow function (returned from |
args |
arguments passed to |
... |
other arguments passed to |
name |
string, provided to tensorboard |
profiler |
logical, passed on to |
concrete_fn |
a |
graph |
a tensorflow graph (only used in graph mode, ignored with a warning if executing eagerly) |
Examples
## Not run:
fn <- tf_function(function(x) autograph(if(x > 0) x * x else x))
view_function_graph(fn, list(tf$constant(5)))
## End(Not run)
[Package tfautograph version 0.3.2 Index]