Mojo function
logsoftmax
logsoftmax[dtype: DType, simd_width: Int, rank: Int, input_fn: fn[_simd_width: Int, _rank: Int](IndexList[_rank]) capturing -> SIMD[dtype, _simd_width], target: StringSlice[StaticConstantOrigin] = "cpu"](shape: IndexList[rank], output: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], axis: Int, context: DeviceContextPtr = DeviceContextPtr())
logsoftmax[dtype: DType, simd_width: Int, rank: Int, target: StringSlice[StaticConstantOrigin] = "cpu"](input: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], output: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], axis: Int, context: DeviceContextPtr = DeviceContextPtr())
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!