-
Notifications
You must be signed in to change notification settings - Fork 9
INN.Linear
Zhang Yanbo edited this page Oct 27, 2022
·
1 revision
Invertible version of torch.nn.Linear
. Using the PLU decomposition method. For the full space linear transformation, see INN.JacobianLinear.
-
dim
: dimension of linear inputs. The outputs will have the same dimension as the input for invertibility. -
eps
: Additional term for avoiding log(0).
Compute the forward pass. The output will be the transformed x
. If compute_p=True
, logp
and logdet
will also returned.
Compute the inverse of y
. The **args
is a placeholder for consistent format.