Function tensorflow::ops::one_hot
source · pub fn one_hot<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>>(
indices: O0,
depth: O1,
on_value: O2,
off_value: O3,
scope: &mut Scope
) -> Result<Operation>
Expand description
Shorthand for OneHot::new().build(indices, depth, on_value, off_value, scope)
.