function fill(shape, value, dtype) {
    (0, _utilBase.assertNonNegativeIntegerDimensions)(shape);
    dtype = dtype || (0, _util.inferDtype)(value);
    const attrs = {
        shape,
        value,
        dtype
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Fill), {}, attrs);
}
Creates a `tf.Tensor` filled with a scalar value.

```js
tf.fill([2, 2], 4).print();
```

@param shape An array of integers defining the output tensor shape.
@param value The scalar value to fill the tensor with.
@param dtype The type of an element in the resulting tensor. Defaults to
    'float32' if the given param value is a number, otherwise 'string'.

@doc {heading: 'Tensors', subheading: 'Creation'}