torchsig.models.model_utils.model_utils_1d.conversions_to_1d.convert_2d_model_to_1d¶
- torchsig.models.model_utils.model_utils_1d.conversions_to_1d.convert_2d_model_to_1d(model)[source]¶
converts a 2d model to a corresponding 1d model by replacing convolutional layers and other 2d layers with their 1d equivalents experimental; may not fully convert models with unrecognized layer types mutates input model; returns the mutated model this function is still under development and may not correctly convert all 2d layer types, or may have unexpected behavior on models that perform reshaping internally