Function tensorflow::eager::raw_ops::diag
source · pub fn diag<'a, T0: ToTensorHandle<'a>>(
ctx: &'a Context,
diagonal: &T0
) -> Result<TensorHandle<'a>>
Expand description
Shorthand for Diag::new().call(&ctx, &diagonal)
.
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/Diag