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 58266da commit 0daad89Copy full SHA for 0daad89
1 file changed
src/pquant/pruning_methods/pdp.py
@@ -31,6 +31,8 @@ def build(self, input_shape):
31
shape = (input_shape[0], 1, 1)
32
else:
33
shape = (input_shape[0], 1, 1, 1)
34
+ else:
35
+ shape = input_shape
36
self.mask = self.add_weight(shape=shape, initializer="ones", name="mask", trainable=False)
37
self.flat_weight_size = ops.cast(ops.size(self.mask), self.mask.dtype)
38
super().build(input_shape)
0 commit comments