Vision kernels for BF16 tensors (im2patch, etc.) More...
#include <string.h>#include <stddef.h>#include <stdint.h>#include "bf16_utils.h"#include "ckernel_engine.h"Go to the source code of this file.
Functions | |
| void | im2patch_bf16 (const uint16_t *image, uint16_t *patches, int C, int H, int W, int P) |
| void | patch2im_bf16 (const uint16_t *d_patches, uint16_t *d_image, int C, int H, int W, int P) |
Vision kernels for BF16 tensors (im2patch, etc.)
After changes: make test && make llamacpp-parity-full
Definition in file vision_kernels_bf16.c.
| void im2patch_bf16 | ( | const uint16_t * | image, |
| uint16_t * | patches, | ||
| int | C, | ||
| int | H, | ||
| int | W, | ||
| int | P | ||
| ) |
Definition at line 22 of file vision_kernels_bf16.c.
References C.
| void patch2im_bf16 | ( | const uint16_t * | d_patches, |
| uint16_t * | d_image, | ||
| int | C, | ||
| int | H, | ||
| int | W, | ||
| int | P | ||
| ) |
Definition at line 57 of file vision_kernels_bf16.c.
References bf16_to_float(), C, and float_to_bf16().