tensorflow::ops

Function if_

Source
pub fn if_<O0: Into<Output>, O1: Into<Output>>(
    cond: O0,
    input: O1,
    scope: &mut Scope,
) -> Result<Operation>
Expand description

Shorthand for If::new().build(cond, input, scope).