We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e4c09 commit 33a8030Copy full SHA for 33a8030
tensorflow_model_optimization/python/core/clustering/keras/cluster_test.py
@@ -170,7 +170,10 @@ def testClusterCustomNonClusterableLayer(self):
170
an exception.
171
"""
172
custom_non_clusterable_layer = self.custom_non_clusterable_layer
173
- # We need to build weights before check.
+ # Once layer is empty with no weights allocated, clustering is supported.
174
+ cluster_wrapper.ClusterWeights(custom_non_clusterable_layer,
175
+ **self.params)
176
+ # We need to build weights before check that clustering is not supported.
177
custom_non_clusterable_layer.build(input_shape=(10, 10))
178
with self.assertRaises(ValueError):
179
cluster_wrapper.ClusterWeights(custom_non_clusterable_layer,
0 commit comments