antsnormflows.utils.nn
Functions
|
Sums all elements of x except for the first num_batch_dims dimensions. |
|
Classes
|
ActNorm layer with just one forward pass |
|
Nonlinearity min(exp(lam * x), 1) |
|
Scaling features by a fixed factor |
|
Converts a specified part of the input to periodic features by replacing those features f with [sin(scale * f), cos(scale * f)]. |
|
Converts a specified part of the input to periodic features by replacing those features f with w1 * sin(scale * f) + w2 * cos(scale * f). |