function full(size, fill_value) {
    let dtype;
    let typedArrayCls;
    if (typeof fill_value === 'number') {
        dtype = 'float32';
        typedArrayCls = Float32Array;
    } else if (typeof fill_value === 'bigint') {
        dtype = 'int64';
        typedArrayCls = BigInt64Array;
    } else if (typeof fill_value === 'boolean') {
        dtype = 'bool';
        typedArrayCls = Uint8Array;
    } else {
        // TODO: support other dtypes
        throw new Error(`Unsupported data type: ${typeof fill_value}`);
    }
    return fullHelper(size, fill_value, dtype, typedArrayCls);
}
Creates a tensor of size size filled with fill_value. The tensor's dtype is inferred from fill_value.
@param {number[]} size A sequence of integers defining the shape of the output tensor.
@param {number|bigint|boolean} fill_value The value to fill the output tensor with.
@returns {Tensor} The filled tensor.