My Project
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 
20 
21 namespace mlir {
22 namespace quantizer {
23 
30 public:
32  static std::unique_ptr<FxpMathTargetConfig> create(SolverContext &context);
33 
34 protected:
36 };
37 
38 } // namespace quantizer
39 } // namespace mlir
40 
41 #endif // MLIR_QUANTIZER_CONFIGURATIONS_FXPMATHCONFIG_H
Definition: InferTypeOpInterface.cpp:20
Definition: FxpMathConfig.h:29
static std::unique_ptr< FxpMathTargetConfig > create(SolverContext &context)
Creates an FxpMathTargetConfig instance which can be further customized.
Definition: FxpMathConfig.cpp:276
Definition: Configuration.h:43
Definition: Metadata.h:28
FxpMathTargetConfig(SolverContext &context)
Definition: FxpMathConfig.h:35