MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
include
MLModelRunner
Utils
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
22
namespace
MLBridge
{
23
24
#ifdef MLBRIDGE_EXTENDED_TYPES
25
using
RealType
= double;
26
using
IntegerType
= long;
27
#else
28
using
RealType
= float;
29
using
IntegerType
= int;
30
#endif
31
32
}
// namespace MLBridge
33
34
#endif
MLBridge
Definition
gRPCModelRunner.h:75
MLBridge::RealType
float RealType
Definition
DataTypes.h:28
MLBridge::IntegerType
int IntegerType
Definition
DataTypes.h:29
Generated by
1.10.0