torchsig.models.model_utils.model_utils_1d.conversions_to_1dΒΆ
Functions
returns a MaxPool1d layer corresponding to the input MaxPool2d layer no muation is performed |
|
returns a GBN1d [Ghost Batch Norm] layer corresponding to the input BatchNorm2d layer no muation is performed |
|
returns a BatchNorm1d layer corresponding to the input BatchNorm2d layer no muation is performed |
|
returns a 1d conv layer corresponding to the input conv2d layer no muation is performed |
|
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 |
|
adjusts kernel shapes from 2d to 1d; returns 1d shape (single int) |
|
returns a FastGlobalAvgPool1d layer |
|
returns a MaxPool1d layer corresponding to the input MaxPool2d layer no muation is performed |
|
returns a GBN1d [Ghost Batch Norm] layer corresponding to the input BatchNorm2d layer no muation is performed |
|
tries to return the result of a function call; returns result_on_error on error |