tfjs_sys

Function scalar

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

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