YouTip LogoYouTip

Pytorch Torch Positive

# PyTorch torch.positive Function * * * [![Image 3: Pytorch torch Reference Manual]( Pytorch torch Reference Manual]( `torch.positive` is a function in PyTorch used for element-wise positive operation. Returns the input tensor itself. ### Function Definition torch.positive(input) * * * ## Usage Example ## Example import torch # Element-wise positive x = torch.tensor([1.0,2.0,3.0]) result = torch.positive(x) print(result) * * * [![Image 4: Pytorch torch Reference Manual]( Pytorch torch Reference Manual](
← Pytorch Torch ProdPytorch Torch Polar β†’