syedmohaiminulhoque commited on
Commit
85967a5
·
verified ·
1 Parent(s): d18bfc9

Add DKM implementation files

Browse files
Files changed (1) hide show
  1. dkm/__init__.py +19 -0
dkm/__init__.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ DKM: Differentiable K-Means Clustering Layer for Neural Network Compression
3
+
4
+ Implementation of the ICLR 2022 paper by Cho et al.
5
+ (arXiv: 2108.12659)
6
+ """
7
+
8
+ from dkm.dkm_layer import DKMLayer
9
+ from dkm.compressor import DKMCompressor, compress_model
10
+ from dkm.utils import compute_model_size, compute_compression_ratio
11
+
12
+ __version__ = "1.0.0"
13
+ __all__ = [
14
+ "DKMLayer",
15
+ "DKMCompressor",
16
+ "compress_model",
17
+ "compute_model_size",
18
+ "compute_compression_ratio",
19
+ ]