|
| 1 | +/* Copyright 2016 Google Inc. All Rights Reserved. |
| 2 | +
|
| 3 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +you may not use this file except in compliance with the License. |
| 5 | +You may obtain a copy of the License at |
| 6 | +
|
| 7 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +
|
| 9 | +Unless required by applicable law or agreed to in writing, software |
| 10 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +See the License for the specific language governing permissions and |
| 13 | +limitations under the License. |
| 14 | +==============================================================================*/ |
| 15 | + |
| 16 | +#ifndef SYNTAXNET_BASE_H_ |
| 17 | +#define SYNTAXNET_BASE_H_ |
| 18 | + |
| 19 | +#include <functional> |
| 20 | +#include <string> |
| 21 | +#include <unordered_map> |
| 22 | +#include <unordered_set> |
| 23 | +#include <vector> |
| 24 | + |
| 25 | +#include "google/protobuf/util/message_differencer.h" |
| 26 | + |
| 27 | + |
| 28 | +#include "tensorflow/core/lib/core/status.h" |
| 29 | +#include "tensorflow/core/lib/strings/strcat.h" |
| 30 | +#include "tensorflow/core/lib/strings/stringprintf.h" |
| 31 | +#include "tensorflow/core/platform/default/integral_types.h" |
| 32 | +#include "tensorflow/core/platform/mutex.h" |
| 33 | +#include "tensorflow/core/platform/protobuf.h" |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +using tensorflow::int8; |
| 38 | +using tensorflow::int16; |
| 39 | +using tensorflow::int32; |
| 40 | +using tensorflow::int64; |
| 41 | +using tensorflow::uint8; |
| 42 | +using tensorflow::uint16; |
| 43 | +using tensorflow::uint64; |
| 44 | +using tensorflow::uint32; |
| 45 | +using tensorflow::protobuf::TextFormat; |
| 46 | +using tensorflow::mutex_lock; |
| 47 | +using tensorflow::mutex; |
| 48 | +using std::map; |
| 49 | +using std::pair; |
| 50 | +using std::vector; |
| 51 | +using std::unordered_map; |
| 52 | +using std::unordered_set; |
| 53 | +typedef signed int char32; |
| 54 | + |
| 55 | +using tensorflow::StringPiece; |
| 56 | +using std::string; |
| 57 | + |
| 58 | + |
| 59 | + // namespace syntaxnet |
| 60 | + |
| 61 | +#endif // SYNTAXNET_BASE_H_ |
0 commit comments