-
Notifications
You must be signed in to change notification settings - Fork 640
Expand file tree
/
Copy pathBUILD.bazel
More file actions
52 lines (48 loc) · 1.25 KB
/
BUILD.bazel
File metadata and controls
52 lines (48 loc) · 1.25 KB
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
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//third_party/bazel_rules/rules_python/python:py_test.bzl", "py_test")
load("@pybind11_bazel//:build_defs.bzl", "pybind_extension")
package(
default_applicable_licenses = [
"//:license", # Placeholder comment, do not modify
],
default_visibility = ["//visibility:public"],
)
cc_library(
name = "compression_clif_aux",
srcs = ["compression_clif_aux.cc"],
hdrs = ["compression_clif_aux.h"],
visibility = ["//visibility:private"],
deps = [
"//:basics",
"//:configs",
"//:mat",
"//:model_store",
"//:tensor_info",
"//:threading_context",
"//:tokenizer",
"//compression:compress",
"//io",
"//io:blob_store",
"@highway//:hwy",
],
)
pybind_extension(
name = "compression",
srcs = ["compression_extension.cc"],
deps = [
":compression_clif_aux",
"//:mat",
"//:tensor_info",
"//compression:types",
],
)
py_test(
name = "compression_test",
srcs = ["compression_test.py"],
deps = [
":compression",
"@com_google_absl_py//absl/testing:absltest",
"//python:configs",
"@compression_deps//numpy",
],
)