Skip to content

Commit fa3f855

Browse files
Xharktensorflower-gardener
authored andcommitted
Initial commit for compression api core part.
PiperOrigin-RevId: 335770102
1 parent bba3f17 commit fa3f855

File tree

6 files changed

+1054
-0
lines changed

6 files changed

+1054
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
package(default_visibility = [
2+
"//tensorflow_model_optimization:__subpackages__",
3+
"//third_party/tensorflow:__subpackages__",
4+
])
5+
6+
licenses(["notice"])
7+
8+
py_library(
9+
name = "keras",
10+
srcs = [
11+
"__init__.py",
12+
],
13+
srcs_version = "PY2AND3",
14+
deps = [
15+
":compress",
16+
],
17+
)
18+
19+
py_library(
20+
name = "compress",
21+
srcs = ["compress.py"],
22+
srcs_version = "PY2AND3",
23+
deps = [
24+
":compress_wrapper",
25+
# attr dep1,
26+
# enum dep1,
27+
# tensorflow dep1,
28+
# python:util tensorflow dep2,
29+
# python/keras:models tensorflow dep2,
30+
# python/keras/engine tensorflow dep2,
31+
],
32+
)
33+
34+
py_test(
35+
name = "compress_test",
36+
srcs = [
37+
"compress_test.py",
38+
],
39+
python_version = "PY3",
40+
deps = [
41+
":compress",
42+
# absl/testing:parameterized dep1,
43+
# numpy dep1,
44+
# tensorflow dep1,
45+
],
46+
)
47+
48+
py_library(
49+
name = "compress_wrapper",
50+
srcs = [
51+
"compress_wrapper.py",
52+
],
53+
srcs_version = "PY2AND3",
54+
deps = [
55+
# tensorflow dep1,
56+
],
57+
)
58+
59+
py_test(
60+
name = "compress_wrapper_test",
61+
srcs = [
62+
"compress_wrapper_test.py",
63+
],
64+
python_version = "PY3",
65+
visibility = ["//visibility:public"],
66+
deps = [
67+
":compress_wrapper",
68+
# absl/testing:parameterized dep1,
69+
# numpy dep1,
70+
# tensorflow dep1,
71+
],
72+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================

0 commit comments

Comments
 (0)