UnpackedDualTensor
-
class torch.autograd.forward_ad.UnpackedDualTensor(primal, tangent)[source] -
Namedtuple returned by
unpack_dual()containing the primal and tangent components of the dual tensor.See
unpack_dual()for more details.-
count(value, /) -
Return number of occurrences of value.
-
index(value, start=0, stop=9223372036854775807, /) -
Return first index of value.
Raises ValueError if the value is not present.
-
primal: Tensor -
Alias for field number 0
-
tangent: Optional[Tensor] -
Alias for field number 1
-