xref: /aosp_15_r20/external/federated-compute/fcp/tensorflow/testing/BUILD (revision 14675a029014e728ec732f129a32e299b2da0601)
1*14675a02SAndroid Build Coastguard Worker# Copyright 2020 Google LLC
2*14675a02SAndroid Build Coastguard Worker#
3*14675a02SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*14675a02SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*14675a02SAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*14675a02SAndroid Build Coastguard Worker#
7*14675a02SAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
8*14675a02SAndroid Build Coastguard Worker#
9*14675a02SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*14675a02SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*14675a02SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*14675a02SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*14675a02SAndroid Build Coastguard Worker# limitations under the License.
14*14675a02SAndroid Build Coastguard Worker
15*14675a02SAndroid Build Coastguard Workerload("//fcp:config.bzl", "FCP_COPTS")
16*14675a02SAndroid Build Coastguard Worker
17*14675a02SAndroid Build Coastguard Workerpackage(
18*14675a02SAndroid Build Coastguard Worker    default_visibility = [
19*14675a02SAndroid Build Coastguard Worker        "//fcp:internal",
20*14675a02SAndroid Build Coastguard Worker    ],
21*14675a02SAndroid Build Coastguard Worker    licenses = ["notice"],  # Apache 2.0
22*14675a02SAndroid Build Coastguard Worker)
23*14675a02SAndroid Build Coastguard Worker
24*14675a02SAndroid Build Coastguard Workercc_library(
25*14675a02SAndroid Build Coastguard Worker    name = "tf_helper",
26*14675a02SAndroid Build Coastguard Worker    testonly = 1,
27*14675a02SAndroid Build Coastguard Worker    srcs = ["tf_helper.cc"],
28*14675a02SAndroid Build Coastguard Worker    hdrs = ["tf_helper.h"],
29*14675a02SAndroid Build Coastguard Worker    copts = FCP_COPTS,
30*14675a02SAndroid Build Coastguard Worker    deps = [
31*14675a02SAndroid Build Coastguard Worker        "//fcp/base:result",
32*14675a02SAndroid Build Coastguard Worker        "//fcp/tensorflow:tf_session",
33*14675a02SAndroid Build Coastguard Worker        "@com_google_absl//absl/strings:cord",
34*14675a02SAndroid Build Coastguard Worker        "@com_google_googletest//:gtest_main",
35*14675a02SAndroid Build Coastguard Worker        "@org_tensorflow//tensorflow/cc:cc_ops",
36*14675a02SAndroid Build Coastguard Worker        "@org_tensorflow//tensorflow/cc:scope",
37*14675a02SAndroid Build Coastguard Worker        "@org_tensorflow//tensorflow/core:protos_all_cc",
38*14675a02SAndroid Build Coastguard Worker    ],
39*14675a02SAndroid Build Coastguard Worker)
40