Download include/ling3/linear.h from Sariel00/Ling-3.0-tiny-RKNN: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/Sariel00/Ling-3.0-tiny-RKNN/resolve/main/include/ling3/linear.h
- Command line
-
hf download hf://Sariel00/Ling-3.0-tiny-RKNN/include/ling3/linear.h
-
curl -L -o linear.h https://huggingface.co/Sariel00/Ling-3.0-tiny-RKNN/resolve/main/include/ling3/linear.h
1.01 kB
| namespace ling3 { | |
| // Keeps the original W4 path and an explicit experimental official-weight bridge. | |
| class Linear { | |
| public: | |
| Linear(const ModelPackage &,const std::string &,W4LinearConfig); | |
| ~Linear(); | |
| W4RunTimings Run(std::span<const float>,std::span<float>); | |
| W4RunTimings RunBatch(std::span<const float>,std::size_t,std::span<float>); | |
| W4RunTimings RunBatchWithWeights(std::span<const float>,std::size_t,const Linear &,std::span<float>); | |
| W4RunTimings RunBatchQuantizedRows(std::span<const std::int8_t>,std::span<const float>,std::span<const std::size_t>,const Linear &,std::span<float>); | |
| void PrepareBatch(std::size_t,bool indexed=false); | |
| float PrepareInput(std::span<const float>); | |
| W4RunTimings RunPrepared(float,std::span<float>); | |
| void ShareInputFrom(Linear &); | |
| void SetSingleCore(int); | |
| private: | |
| struct Impl; | |
| std::unique_ptr<Impl> impl_; | |
| }; | |
| } | |