aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/tfprof/BUILD
blob: 57cccd8921be6b16127e1e759287bd50c4649dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package(
    default_visibility = ["//visibility:public"],
)

licenses(["notice"])  # Apache 2.0

# -----------------------------------------------------------------------------
# Google-internal targets.  These must be at the end for syncrepo.

filegroup(
    name = "all_files",
    srcs = glob(
        ["**/*"],
        exclude = [
            "**/METADATA",
            "**/OWNERS",
        ],
    ),
    visibility = ["//tensorflow:__subpackages__"],
)

cc_binary(
    name = "tfprof",
    srcs = ["tfprof_main.cc"],
    deps = [
        ":protos_all_cc",
        "//tensorflow/c:c_api",
        "//tensorflow/c:checkpoint_reader",
        "//tensorflow/core:framework_headers_lib",
        "//tensorflow/core:framework_internal",
        "//tensorflow/core:lib",
        "//tensorflow/core:protos_all_cc",
        "//tensorflow/tools/tfprof/internal:tfprof_options",
        "//tensorflow/tools/tfprof/internal:tfprof_stats",
        "//tensorflow/tools/tfprof/internal:tfprof_utils",
        "@linenoise//:linenoise",
    ],
)

load("//tensorflow/core:platform/default/build_config.bzl", "tf_proto_library")

tf_proto_library(
    name = "protos_all",
    srcs = glob(
        ["**/*.proto"],
    ),
    cc_api_version = 2,
    go_api_version = 2,
    java_api_version = 2,
    protodeps = ["//tensorflow/core:protos_all"],
    visibility = ["//visibility:public"],
)