MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
DataTypes.h
Go to the documentation of this file.
1//=== MLModelRunner/Utils/DataTypes.h - Supported Data Types - C++ -------===//
2//
3// Part of the MLCompilerBridge Project, under the Apache License v2.0 with LLVM
4// Exceptions. See the LICENSE file for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
17//===----------------------------------------------------------------------===//
18
19#ifndef MLBRIDGE_DATATYPES_H
20#define MLBRIDGE_DATATYPES_H
21
22namespace MLBridge {
23
24#ifdef MLBRIDGE_EXTENDED_TYPES
25using RealType = double;
26using IntegerType = long;
27#else
28using RealType = float;
29using IntegerType = int;
30#endif
31
32} // namespace MLBridge
33
34#endif
float RealType
Definition DataTypes.h:28
int IntegerType
Definition DataTypes.h:29