[][src]Function tfjs_sys::scalar

pub fn scalar(value: &JsValue, dtype: Option<&str>) -> Tensor

Creates rank-0 Tensor (scalar) with the provided value and dtype.