Function tensorflow::eager::raw_ops::one_hot
source · pub fn one_hot<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>(
ctx: &'a Context,
indices: &T0,
depth: &T1,
on_value: &T2,
off_value: &T3
) -> Result<TensorHandle<'a>>
Expand description
Shorthand for OneHot::new().call(&ctx, &indices, &depth, &on_value, &off_value)
.
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/OneHot