All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
kaldi-types.h
Go to the documentation of this file.
1 // base/kaldi-types.h
2 
3 // Copyright 2009-2011 Microsoft Corporation; Saarland University;
4 // Jan Silovsky; Yanmin Qian
5 
6 // See ../../COPYING for clarification regarding multiple authors
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
16 // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
17 // MERCHANTABLITY OR NON-INFRINGEMENT.
18 // See the Apache 2 License for the specific language governing permissions and
19 // limitations under the License.
20 
21 #ifndef KALDI_BASE_KALDI_TYPES_H_
22 #define KALDI_BASE_KALDI_TYPES_H_ 1
23 
24 namespace kaldi {
25 // TYPEDEFS ..................................................................
26 #if (KALDI_DOUBLEPRECISION != 0)
27 typedef double BaseFloat;
28 #else
29 typedef float BaseFloat;
30 #endif
31 }
32 
33 #ifdef _MSC_VER
34 #include <basetsd.h>
35 #define ssize_t SSIZE_T
36 #endif
37 
38 // we can do this a different way if some platform
39 // we find in the future lacks stdint.h
40 #include <stdint.h>
41 
42 // for discussion on what to do if you need compile kaldi
43 // without OpenFST, see the bottom of this this file
44 #include <fst/types.h>
45 
46 namespace kaldi {
47  using ::int16;
48  using ::int32;
49  using ::int64;
50  using ::uint16;
51  using ::uint32;
52  using ::uint64;
53  typedef float float32;
54  typedef double double64;
55 } // end namespace kaldi
56 
57 // In a theoretical case you decide compile Kaldi without the OpenFST
58 // comment the previous namespace statement and uncomment the following
59 /*
60 namespace kaldi {
61  typedef int8_t int8;
62  typedef int16_t int16;
63  typedef int32_t int32;
64  typedef int64_t int64;
65 
66  typedef uint8_t uint8;
67  typedef uint16_t uint16;
68  typedef uint32_t uint32;
69  typedef uint64_t uint64;
70  typedef float float32;
71  typedef double double64;
72 } // end namespace kaldi
73 */
74 
75 #endif // KALDI_BASE_KALDI_TYPES_H_
Relabels neural network egs with the read pdf-id alignments.
Definition: chain.dox:20
float BaseFloat
Definition: kaldi-types.h:29
float float32
Definition: kaldi-types.h:53
double double64
Definition: kaldi-types.h:54