Skip to main content

Module cast

Module cast 

Source
Expand description

Vulkan dispatch wrappers for dtype casts between f32 and f64 / half precision.

Functions§

cast_f32_f64
cast_f32_f64 kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.
cast_f32_half
cast_f32_half kernel-binding wrapper: takes the executor’s inputs, outputs, layouts and OpParams and runs the Vulkan kernel for that op and dtype.