Mojo function
layer_norm_gpu
layer_norm_gpu[type: DType, rank: Int, //, input_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[type, $0], gamma_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[type, $0]](shape: Index[rank, element_type=element_type], beta: NDBuffer[type, 1, origin], epsilon: SIMD[type, 1], output: NDBuffer[type, rank, origin, shape, strides], *, ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!