Download code/models/tt_dit/utils/cpp/transpose_avx2.hpp from stisiTT/flux2-dev-qb2: direct link, hf CLI and curl.
- Browser
- Download file 947 Bytes
-
https://huggingface.co/stisiTT/flux2-dev-qb2/resolve/main/code/models/tt_dit/utils/cpp/transpose_avx2.hpp
- Command line
-
hf download hf://stisiTT/flux2-dev-qb2/code/models/tt_dit/utils/cpp/transpose_avx2.hpp
-
curl -L -o transpose_avx2.hpp https://huggingface.co/stisiTT/flux2-dev-qb2/resolve/main/code/models/tt_dit/utils/cpp/transpose_avx2.hpp
947 Bytes
| // SPDX-FileCopyrightText: (c) 2026 Tenstorrent USA, Inc. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| namespace tt_dit_planar { | |
| // All three routines write dst[i][j] = src[j][i]; `src` is indexed by the CHWT | |
| // source's W axis and `dst` by its T axis, so the caller's "rows" swap meaning | |
| // across the call. | |
| // 32 source rows x 32 source cols. | |
| void transpose_32x32_u8(const uint8_t* src, std::ptrdiff_t src_stride, uint8_t* dst, std::ptrdiff_t dst_stride); | |
| // 32 source rows x `n` source cols, n in [1, 32]. Reads only `n` bytes per | |
| // source row, so a short trailing source is never over-read. | |
| void transpose_32xN_u8(const uint8_t* src, std::ptrdiff_t src_stride, uint8_t* dst, std::ptrdiff_t dst_stride, int n); | |
| // 16 source rows x 32 source cols. | |
| void transpose_32x16_u8(const uint8_t* src, std::ptrdiff_t src_stride, uint8_t* dst, std::ptrdiff_t dst_stride); | |
| } // namespace tt_dit_planar | |