Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,34 @@ tf_cc_binary(
linkstatic=True,
visibility = ["//visibility:public"],
)

tf_cc_binary(
name = 'infer_multi',
srcs = [
"examples/cpp/infer_multiple_networks/main.cc",
"examples/cpp/infer_multiple_networks/inference_engine.h",
"examples/cpp/infer_multiple_networks/inference_engine.cc",
"examples/cpp/tf_label_image_utils.cc",
],
deps = [
"@org_tensorflow//tensorflow/cc:cc_ops",
"@org_tensorflow//tensorflow/cc:client_session",
"@org_tensorflow//tensorflow/core:tensorflow",
":ngraph_bridge_lib",
"@ngraph//:cpu_backend",
],
copts = [
"-pthread",
"-std=c++11",
"-D_FORTIFY_SOURCE=2",
"-Wformat",
"-Wformat-security",
"-Wformat",
"-fstack-protector-all",
"-I ngraph_bridge",
"-I external/ngraph/src",
"-I logging",
] + CXX_ABI,
linkstatic=False,
visibility = ["//visibility:public"],
)
33 changes: 0 additions & 33 deletions examples/cpp/infer_multiple_networks/BUILD

This file was deleted.

7 changes: 4 additions & 3 deletions tools/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,7 @@ def run_bazel_build_test(venv_dir, build_dir):
command_executor(['bazel-bin/hello_tf'])

# Now built the bigger app
command_executor([
'bazel', 'build', '//examples/cpp/infer_multiple_networks:infer_multi'
])
command_executor(['bazel', 'build', 'infer_multi'])

# Return to the original directory
os.chdir(root_pwd)
Expand All @@ -620,5 +618,8 @@ def run_bazel_build():
# Run the cpp app - hello_tf
command_executor(['bazel-bin/hello_tf'])

# Now built the bigger app
command_executor(['bazel', 'build', 'infer_multi'])

# Return to the original directory
os.chdir(root_pwd)