Pytorch Torch Ge
# PyTorch torch.ge Function
* * Pytorch torch Reference Manual](#)
`torch.ge` is a function in PyTorch used for element-wise greater than or equal to comparison.
### Function Definition
torch.ge(input, other, out)
* * *
## Usage Example
## Example
import torch
# Element-wise Greater Than or Equal To Comparison
x = torch.tensor([1,2,3,4])
y = torch.tensor([2,2,2,5])
result = torch.ge(x, y)
print(result)
* * Pytorch torch Reference Manual](#)
YouTip