layer.build(x.shape)
x = layer(x)
new_predictor = Model(predictor_input, x)
# TODO: this stub needs to be debugged because right now it could rise errors. This is an optional feature.
"""
try:
layer_diff = len(new_predictor.layers) - len(self._predictor.layers)
injection_layer_weights_shape = self._predictor.layers[self._layer + 1].weights[0].shape
https://github.com/psykei/psyki-python/blob/2bea82ebe0f0727f35c593b952b8b88ae5d97d29/psyki/ski/kins/__init__.py#L74