[P] adding check for check_array_lengths
@@ -801,6 +801,7 @@ class Model(Network):
feed_sample_weight_modes)
]
# Check that all arrays have the same length.
+ if check_array_lengths:
check_array_length_consistency(x, y, sample_weights)
if self._is_graph_network:
# Additional checks to avoid users mistakenly
