docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
contraction_precision.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
8#include "sdfg/passes/pass.h"
9
10namespace sdfg {
11namespace fp_math {
12
40
43private:
44 ContractionPrecision precision_;
45
46public:
48
49 virtual std::string name() override;
50
52};
53
54} // namespace fp_math
55} // namespace sdfg
Definition analysis.h:53
Note: Even though the class references unique_ptr, it will never delete an SDFG it has a reference to...
Definition structured_sdfg_builder.h:44
virtual bool run_pass(builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
virtual std::string name() override
ContractionPrecisionPass(const ContractionPrecision &precision)
Definition pass.h:11
Definition function_builder.h:10
Definition kernel_builder.h:18
Rescaling
How QuantizeContraction applies the scales of A's rows and B's columns to the Int32 products.
Definition quantize_contraction.h:15
@ Exponents
Through the scales' power-of-two exponents in one step, so that no intermediate overflows where the r...
Definition quantize_contraction.h:18
OzakiVariant
How the Ozaki scheme represents the operands in Int8.
Definition ozaki_contraction.h:17
@ Modular
Ozaki-II: scale the operands to integers, multiply their residues modulo coprime moduli and reconstru...
Definition ozaki_contraction.h:22
Definition analysis.h:7
How contractions (MatMul and GEMM nodes) of Float and Double compute, as users select it.
Definition contraction_precision.h:24
int parameter
Bits for Quantize, slices or moduli for Ozaki; 0 picks the default.
Definition contraction_precision.h:30
OzakiVariant variant
Definition contraction_precision.h:28
Rescaling rescaling
How the transformations apply the scales; not part of the spec, but chosen by the target,...
Definition contraction_precision.h:33
Kind
Definition contraction_precision.h:25
@ Native
Definition contraction_precision.h:25
@ Quantize
Definition contraction_precision.h:25
@ Ozaki
Definition contraction_precision.h:25
static ContractionPrecision parse(const std::string &spec)
Kind kind
Definition contraction_precision.h:27