My Project
include
mlir
Quantizer
Configurations
FxpMathConfig.h
Go to the documentation of this file.
1
//===- FxpMathConfig.h - Reference fixed point config -----------*- C++ -*-===//
2
//
3
// Part of the MLIR Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file defines a TargetConfiguration for reference fixed-point math
10
// quantization scheme based on the FxpMathOps (plus a small category of
11
// extension ops that can be added from other dialects).
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef MLIR_QUANTIZER_CONFIGURATIONS_FXPMATHCONFIG_H
16
#define MLIR_QUANTIZER_CONFIGURATIONS_FXPMATHCONFIG_H
17
18
#include "
mlir/Quantizer/Support/Configuration.h
"
19
#include "
mlir/Quantizer/Support/Metadata.h
"
20
21
namespace
mlir
{
22
namespace
quantizer {
23
29
class
FxpMathTargetConfig
:
public
TargetConfiguration
{
30
public
:
32
static
std::unique_ptr<FxpMathTargetConfig>
create
(
SolverContext
&context);
33
34
protected
:
35
FxpMathTargetConfig
(
SolverContext
&context) :
TargetConfiguration
(context) {}
36
};
37
38
}
// namespace quantizer
39
}
// namespace mlir
40
41
#endif // MLIR_QUANTIZER_CONFIGURATIONS_FXPMATHCONFIG_H
mlir
Definition:
InferTypeOpInterface.cpp:20
mlir::quantizer::FxpMathTargetConfig
Definition:
FxpMathConfig.h:29
Metadata.h
mlir::quantizer::FxpMathTargetConfig::create
static std::unique_ptr< FxpMathTargetConfig > create(SolverContext &context)
Creates an FxpMathTargetConfig instance which can be further customized.
Definition:
FxpMathConfig.cpp:276
mlir::quantizer::TargetConfiguration
Definition:
Configuration.h:43
mlir::quantizer::SolverContext
Definition:
Metadata.h:28
mlir::quantizer::FxpMathTargetConfig::FxpMathTargetConfig
FxpMathTargetConfig(SolverContext &context)
Definition:
FxpMathConfig.h:35
Configuration.h
Generated by
1.8.13