Mojo function
layer_norm_gpu_block
layer_norm_gpu_block[dtype: DType, //, simd_width: UInt, input_fn: fn[Int](row: Int, col: Int) capturing -> SIMD[dtype, $0], gamma_fn: fn[Int, Int](IndexList[$1]) capturing -> SIMD[dtype, $0], output_fn: fn[Int, Int](row: Int, col: Int, val: SIMD[dtype, $0]) capturing -> None](shape: IndexList[2], beta: NDBuffer[dtype, 1, MutableAnyOrigin], epsilon: SIMD[dtype, 1])
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!