Description Usage Arguments Value Note Examples
View source: R/tf-ctrl-flow-wrappers.R
This is a minimal wrapper around tf$cond() that allows you to supply
true_fn and false_fn as lambda functions defined using the tilde ~.
1 |
pred |
R logical or a tensor. |
true_fn, false_fn |
a |
name |
a string, passed on to |
if cond is a tensor, then the result of tf.cond(). Otherwise, if
pred is an EagerTensor or an R logical, then the result of either
true_fn() or false_fn()
in Tensorflow version 1, the strict keyword argument is supplied with
a value of TRUE (different from the default)
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.