Skip to content

Commit

Permalink
Fix array assignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
james77777778 committed May 29, 2024
1 parent 3480c5f commit 5da58ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kimm/_src/layers/reparameterizable_conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ def _get_reparameterized_weights_from_layer(self, layer):
elif isinstance(layer, layers.BatchNormalization):
k = self.kernel_size[0]
input_filters = 1 if self.use_depthwise else self.input_filters
kernel = ops.convert_to_numpy(
ops.zeros([k, k, input_filters, self.filters])
kernel = np.zeros(
shape=[k, k, input_filters, self.filters], dtype="float64"
)
for i in range(self.input_filters):
group_i = 0 if self.use_depthwise else i
Expand Down

0 comments on commit 5da58ca

Please sign in to comment.