Skip to main content
Log in

Mojo function

exp

exp(inp: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment]) -> LayoutTensor[dtype, layout, MutableAnyOrigin, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment]

Computes element-wise exponential function.

Returns a new tensor containing the element-wise exponential of the input tensor.

Args:

  • inp (LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment]): Input tensor.

Returns:

A new tensor containing the element-wise exponential.