fill function
Creates a variable filled with a scalar value.
Args:
- dims: A variable. Must be 1-D Halide_Type_Int. Represents the shape of the output variable.
- value: A variable. 0-D (scalar). Value to fill the returned variable.
Returns:
- A variable. Has the same type as value.
Implementation
VARP fill(VARP dims, VARP value) => VARP.fromPointer(C.mnn_expr_Fill(dims.ptr, value.ptr));