Skip to main content

Module softmax

Module softmax 

Source
Expand description

Vulkan dispatch wrappers for softmax over the last dimension, forward and backward, per dtype.

Functions§

softmax_bf16
softmax_bf16 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_f16
softmax_f16 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_f32
softmax_f32 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_f64
softmax_f64 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_last_dim_backward_bf16
softmax_last_dim_backward_bf16 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_last_dim_backward_f16
softmax_last_dim_backward_f16 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_last_dim_backward_f32
softmax_last_dim_backward_f32 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
softmax_last_dim_backward_f64
softmax_last_dim_backward_f64 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.