Skip to content

Commit

Permalink
Fix dimension mismatch in MulticoreBPFLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Jul 9, 2024
1 parent e8cbd9c commit 9db04fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deep_learning_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def call(self, inputs):
raise ValueError(f"Dimension mismatch: reshaped inputs shape {input_shape[1:]} does not match predicted_measurements shape {predicted_shape}")

# Reshape inputs to match the shape of predicted_measurements
reshaped_inputs = tf.reshape(inputs, [input_shape[0], predicted_shape[1], predicted_shape[0]])
reshaped_inputs = tf.reshape(inputs, [input_shape[0], predicted_shape[0], predicted_shape[1]])
tf.print("Shape of reshaped_inputs:", tf.shape(reshaped_inputs))

self.particle_weights.assign(tf.reduce_sum(tf.square(reshaped_inputs - tf.transpose(predicted_measurements)), axis=-1))
Expand Down

0 comments on commit 9db04fb

Please sign in to comment.