-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
54 lines (45 loc) · 911 Bytes
/
BUILD
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
53
54
# Copyright Vertex.AI.
package(default_visibility = ["//visibility:public"])
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
exports_files([
"requirements.txt",
"venv.txt",
])
filegroup(
name = "golden",
srcs = glob(["golden/**"]),
)
filegroup(
name = "networks",
srcs = glob(["networks/**"]),
)
filegroup(
name = "cifar16",
srcs = ["cifar16.npy"],
)
pkg_tar(
name = "pkg",
srcs = glob(["**/*"]),
package_dir = "plaidbench",
strip_prefix = ".",
)
py_library(
name = "plaidbench",
srcs = ["plaidbench.py"],
data = glob([
"cifar16.npy",
"golden/**",
"networks/**",
]),
)
py_binary(
name = "bin",
srcs = ["plaidbench.py"],
data = glob([
"cifar16.npy",
"golden/**",
"networks/**",
]),
main = "plaidbench.py",
deps = ["@vertexai_plaidml//plaidml/keras"],
)