YouTip LogoYouTip

Pytorch Torch Exp

# PyTorch torch.exp Function * * * [![Image 3: Pytorch torch Reference Manual]( Pytorch torch Reference Manual]( `torch.exp` is a function in PyTorch used to compute the element-wise exponential function. ### Function Definition torch.exp(input, out=None) * * * ## Usage Example ## Example import torch x = torch.tensor([0,1,2]) print(torch.exp(x)) The output is: tensor([1.0000, 2.7183, 7.3891]) * * * [![Image 4: Pytorch torch Reference Manual]( Pytorch torch Reference Manual](
← Pytorch Torch ExpandPytorch Torch Erfc β†’