Pytorch Torch Full
# PyTorch torch.full Function
* * *
[
* * *
## Usage Example
## Example
import torch
# Create a 3x4 tensor filled with value 7
x = torch.full((3,4),7)
print(x)
Output:
tensor([[7., 7., 7., 7.], [7., 7., 7., 7.], [7., 7., 7., 7.]])
* * *
[![Image 4: Pytorch torch Reference Manual]( Pytorch torch Reference Manual](
YouTip