tf_1.8_xla_doc
tensorflow
tensorflow
compiler
tf2xla
tf2xla.h
Go to the documentation of this file.
1
3
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
http://www.apache.org/licenses/LICENSE-2.0
8
Unless required by applicable law or agreed to in writing, software
9
distributed under the License is distributed on an "AS IS" BASIS,
10
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
See the License for the specific language governing permissions and
12
limitations under the License.
13
==============================================================================*/
14
#ifndef TENSORFLOW_COMPILER_TF2XLA_TF2XLA_H_
15
#define TENSORFLOW_COMPILER_TF2XLA_TF2XLA_H_
16
#include "tensorflow/compiler/tf2xla/tf2xla.pb.h"
17
#include "tensorflow/compiler/xla/client/client.h"
18
#include "tensorflow/compiler/xla/client/computation.h"
19
#include "tensorflow/core/framework/graph.pb.h"
20
namespace
tensorflow
{
21
// Converts a tensorflow::GraphDef into an xla::Computation. The given `config`
22
// specifies the portion of the graph to convert, via feeds and fetches. Each
23
// feed is a positional input argument for the generated computation, while each
24
// fetch is a positional output argument.
25
//
26
// The computation is built in the context of the given `client`, which may
27
// subsequently be used to compile or execute the computation.
28
Status
ConvertGraphDefToXla
(
const
GraphDef& graph_def,
29
const
tf2xla::Config& config, xla::Client* client,
30
xla::Computation* computation);
31
}
// namespace tensorflow
32
#endif // TENSORFLOW_COMPILER_TF2XLA_TF2XLA_H_
tensorflow::ConvertGraphDefToXla
Status ConvertGraphDefToXla(const GraphDef &graph_def, const tf2xla::Config &config, xla::Client *client, xla::Computation *computation)
Convert tensorflow graph_def to XLA UserComputation.
Definition:
tf2xla.cc:355
tensorflow
Definition:
compile.cc:35
Generated by
1.8.14