torchsig.models.model_utils.layer_tools.replace_layer

torchsig.models.model_utils.layer_tools.replace_layer(old_layer, new_layer, model)[source]

search through model until old_layer is found, and replace it with new layer; returns True is old_layer was found; False otherwise