14 #ifndef TENSORFLOW_COMPILER_TF2XLA_TF2XLA_UTIL_H_ 15 #define TENSORFLOW_COMPILER_TF2XLA_TF2XLA_UTIL_H_ 16 #include <unordered_map> 17 #include "tensorflow/compiler/tf2xla/tf2xla.pb.h" 18 #include "tensorflow/core/framework/graph.pb.h" 19 #include "tensorflow/core/framework/op.h" 20 #include "tensorflow/core/graph/graph.h" 21 #include "tensorflow/core/lib/core/status.h" 31 const tf2xla::Config& config,
const OpRegistryInterface* op_registry,
32 std::unordered_map<string, string>* feed_remapping, GraphDef* graph_def);
38 string TensorIdToString(
const tf2xla::TensorId&
id);
42 Status SetNodeShardingFromNeighbors(Node* n,
bool out_edges);
44 #endif // TENSORFLOW_COMPILER_TF2XLA_TF2XLA_UTIL_H_ Status AddPlaceholdersForFeeds(const tf2xla::Config &config, const OpRegistryInterface *op_registry, std::unordered_map< string, string > *feed_remapping, GraphDef *graph_def)
Generate corresponding placeholder for each feed tensor. Traverse each inputs of each nodes...
Definition: tf2xla_util.cc:98
Status PruneGraphDefInto(const tf2xla::Config &config, const GraphDef &in, GraphDef *out)
Remove source nodes of feed tensor. Because they are removed at tensorflow::AddPlaceholdersForFeeds ...
Definition: tf2xla_util.cc:190
Definition: compile.cc:35
Status ValidateConfig(const tf2xla::Config &config)
Definition: tf2xla_util.cc:69