# tensorplay.full Source: https://www.tensorplay.cn/docs/generated/tensorplay.full.html ```python tensorplay.full(size, fill_value, \*, out=None, dtype=None, layout=tensorplay.strided, device=None, requires_grad=False) → Tensor ``` Creates a tensor of size [size](/docs/generated/tensorplay.size.html#tensorplay.size) filled with fill_value. The tensor’s dtype is inferred from fill_value. Parameters: - size ([int](https://docs.python.org/3/builtins/functions.html#int)...) – a list, tuple, or [tensorplay.Size](/docs/generated/tensorplay.Size.html#tensorplay.Size) of integers defining the shape of the output tensor. - fill_value ([Scalar](/docs/generated/tensorplay.Scalar.html#tensorplay.Scalar)) – the value to fill the output tensor with. Keyword Arguments: - out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. - dtype ([tensorplay.dtype](/docs/generated/tensorplay.DType.html#tensorplay.DType), optional) – the desired data type of returned tensor. Default: if None, uses a global default (see [tensorplay.set_default_dtype()](/docs/generated/tensorplay.set_default_dtype.html#tensorplay.set_default_dtype)). - layout (tensorplay.layout, optional) – the desired layout of returned Tensor. Default: tensorplay.strided. - device ([tensorplay.device](/docs/generated/tensorplay.Device.html#tensorplay.Device), optional) – the desired device of returned tensor. Default: if None, uses the current device for the default tensor type (see [tensorplay.set_default_device()](/docs/generated/tensorplay.set_default_device.html#tensorplay.set_default_device)). [device](/docs/generated/tensorplay.Device.html#tensorplay.Device) will be the CPU for CPU tensor types and the current CUDA device for CUDA tensor types. - requires_grad ([bool](https://docs.python.org/3/builtins/functions.html#bool), optional) – If autograd should record operations on the returned tensor. Default: False. Example: ``` >>> tensorplay.full((2, 3), 3.141592) tensor([[ 3.1416, 3.1416, 3.1416], [ 3.1416, 3.1416, 3.1416]]) ```