aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/hvx
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-07-18 15:20:03 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-07-18 15:23:57 -0700
commitd5f4d9bbac520ad9eae6614fe678e9d1568435a4 (patch)
tree4d0e5115006e12127650b4f97d9b34942938abf3 /tensorflow/contrib/hvx
parentd8672f1839df67f765baaa34a4c806ee1d433842 (diff)
Add a way to fuse a graph by remote graph executor so that users don't need to be aware of supported op types, node names, subgraph stracture etc.
PiperOrigin-RevId: 162411763
Diffstat (limited to 'tensorflow/contrib/hvx')
-rw-r--r--tensorflow/contrib/hvx/hvx_ops_support_checker/hvx_ops_support_checker_main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/contrib/hvx/hvx_ops_support_checker/hvx_ops_support_checker_main.cc b/tensorflow/contrib/hvx/hvx_ops_support_checker/hvx_ops_support_checker_main.cc
index 6af608396a..8fc3f35f41 100644
--- a/tensorflow/contrib/hvx/hvx_ops_support_checker/hvx_ops_support_checker_main.cc
+++ b/tensorflow/contrib/hvx/hvx_ops_support_checker/hvx_ops_support_checker_main.cc
@@ -24,6 +24,7 @@ limitations under the License.
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/framework/remote_fused_graph_execute_info.pb.h"
#include "tensorflow/core/kernels/hexagon/hexagon_ops_definitions.h"
+#include "tensorflow/core/kernels/i_remote_fused_graph_ops_definitions.h"
#include "tensorflow/core/kernels/remote_fused_graph_execute_utils.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/lib/strings/str_util.h"
@@ -110,7 +111,7 @@ static void DumpRemoteFusedGraph(const NodeDef& node_def) {
static void CheckOpsSupport(const GraphDef& graph_def,
const bool dump_all_nodes,
const bool dump_shape_and_type) {
- const IGraphTransferOpsDefinitions& ops_definition =
+ const IRemoteFusedGraphOpsDefinitions& ops_definition =
HexagonOpsDefinitions::getInstance();
LOG(INFO) << "Checking " << graph_def.node_size() << " nodes";
LOG(INFO) << "dump_all_nodes = " << dump_all_nodes
@@ -127,7 +128,7 @@ static void CheckOpsSupport(const GraphDef& graph_def,
}
// TODO(satok): Set correct data type if it's given.
const int op_id = ops_definition.GetOpIdFor(node.op(), {});
- if (op_id == IGraphTransferOpsDefinitions::INVALID_OP_ID) {
+ if (op_id == IRemoteFusedGraphOpsDefinitions::INVALID_OP_ID) {
all_supported = false;
LOG(ERROR) << "OP type: " << node.op() << " is not supported on hvx. "
<< "Name = " << node.name();