Compound¶
Compound manifolds
- class Manifolds.CompoundManifold(manifolds)[source]¶
-
- add_gd(gd)[source]¶
Adds gd to the manifold geometrical descriptors.
- Parameters
gd (Iterable or torch.Tensor) – Tensors that will be added to the manifold geometrical descriptors.
- clone(requires_grad=False)[source]¶
Returns a copy of the manifold. The computation tree gets detached.
- property cotan¶
- cotan_requires_grad_(requires_grad=True)¶
- property device¶
- property dim¶
- property dtype¶
- fill_cotan_zeros(requires_grad=True)¶
Same as fill_gd_zeros(), for cotangents.
- fill_gd(gd, copy=False, requires_grad=None)[source]¶
Fill geometrical descriptors to the manifold.
- Parameters
copy (bool, default=False) – If True, copy the geometrical descriptors into the manifold, detaching the computation graph. If False, the tensors are passed by references.
requires_grad (bool, default=True) – If copy**=True, set the **requires_grad flag of the copied geometrical descriptors tensors to the given boolean value.
- fill_gd_randn(requires_grad=True)[source]¶
Fill geometrical descriptors with a standard normal distribution.
- Parameters
requires_grad (bool, default=True) – Value given to the requires_grad flag of the random tensors.
- fill_gd_zeros(requires_grad=True)¶
Fill geometrical descriptors with zero tensors.
- Parameters
requires_grad (bool, default=True) – Value given to the requires_grad flag of the zero tensors.
- fill_tan_zeros(requires_grad=True)¶
Same as fill_gd_zeros(), for tangents.
- property gd¶
- gd_requires_grad_(requires_grad=True)¶
- infinitesimal_action(field)[source]¶
Infinitesimal action generated by the manifold.
- Parameters
field (StructuredField.BaseStructuredField) – Hello there.
- property len_gd¶
- property manifolds¶
- property nb_pts¶
- property numel_gd¶
- roll_gd(l)[source]¶
Unflattens the list into one suitable for fill_gd() or all *_gd() numerical operations.
- property tan¶
- tan_requires_grad_(requires_grad=True)¶