torchbox.layerfunction package
Submodules
torchbox.layerfunction.complex_functions module
- torchbox.layerfunction.complex_functions.complex_dropout(input, p=0.5, training=True, inplace=False)
- torchbox.layerfunction.complex_functions.complex_dropout2d(input, p=0.5, training=True, inplace=False)
- torchbox.layerfunction.complex_functions.complex_leaky_relu(input, negative_slope=(0.01, 0.01), inplace=False)
- torchbox.layerfunction.complex_functions.complex_max_pool1d(input, kernel_size, stride=None, padding=0, dilation=1, ceil_mode=False, return_indices=False)
- torchbox.layerfunction.complex_functions.complex_max_pool2d(input, kernel_size, stride=None, padding=0, dilation=1, ceil_mode=False, return_indices=False)
- torchbox.layerfunction.complex_functions.complex_relu(input, inplace=False)
- torchbox.layerfunction.complex_functions.complex_upsample(input, size=None, scale_factor=None, mode='nearest', align_corners=None)
torchbox.layerfunction.cplxfunc module
- torchbox.layerfunction.cplxfunc.csign(x, cdim=None)
The signum function like Matlab’s sign
\[{\rm csign}(x+jy) = \frac{x+jy}{\sqrt{x^2+y^2}} \]
- torchbox.layerfunction.cplxfunc.csoftshrink(x, alpha=0.5, cdim=None, inplace=False)
Complex soft shrink function