TensorFlow Serving C++ API Documentation
tensorflow_serving
servables
tensorflow
run_options_base.h
1
/* Copyright 2020 Google Inc. All Rights Reserved.
2
Licensed under the Apache License, Version 2.0 (the "License");
3
you may not use this file except in compliance with the License.
4
You may obtain a copy of the License at
5
http://www.apache.org/licenses/LICENSE-2.0
6
Unless required by applicable law or agreed to in writing, software
7
distributed under the License is distributed on an "AS IS" BASIS,
8
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
See the License for the specific language governing permissions and
10
limitations under the License.
11
==============================================================================*/
12
13
#ifndef THIRD_PARTY_TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_RUN_OPTIONS_BASE_H_
14
#define THIRD_PARTY_TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_RUN_OPTIONS_BASE_H_
15
16
#include <stdint.h>
17
18
#include "absl/time/time.h"
19
20
namespace
tensorflow {
21
namespace
serving {
22
namespace
servables {
23
24
// RunOptionsBase group the configuration for individual inference executions.
25
// The per-request configuration (e.g. deadline) can be passed here.
26
struct
RunOptionsBase
{
27
// Priority of the request. Some thread pool implementation will schedule
28
// ops based on the priority number. Larger number means higher
29
// priority.
30
int64_t priority = 1;
31
// The deadline for this request.
32
absl::Time deadline = absl::InfiniteFuture();
33
};
34
35
}
// namespace servables
36
}
// namespace serving
37
}
// namespace tensorflow
38
#endif
// THIRD_PARTY_TENSORFLOW_SERVING_SERVABLES_TENSORFLOW_OSS_RUN_OPTIONS_BASE_H_
tensorflow::serving::servables::RunOptionsBase
Definition:
run_options_base.h:26
Generated by
1.9.1