For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
logsoftmax
def logsoftmax[dtype: DType, simd_width: Int, rank: Int, input_fn: def[_simd_width: Int](Coord[_]) capturing -> SIMD[dtype, _simd_width], target: StringSlice[StaticConstantOrigin] = StringSlice("cpu"), has_prologue_fusion: Bool = True](shape: Coord, output: TileTensor[dtype, Storage=output.Storage, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], axis: Int, context: Optional[DeviceContext] = None)
def logsoftmax[dtype: DType, simd_width: Int, rank: Int, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](input: TileTensor[dtype, Storage=input.Storage, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size], output: TileTensor[dtype, Storage=output.Storage, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], axis: Int, context: Optional[DeviceContext] = None)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!