You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arguments used to initialize the repinit block, see docstr in `RepinitArgs` for details information.
396
+
repformer : Union[RepformerArgs, dict]
397
+
The arguments used to initialize the repformer block, see docstr in `RepformerArgs` for details information.
398
+
concat_output_tebd : bool, optional
399
+
Whether to concat type embedding at the output of the descriptor.
400
+
precision : str, optional
401
+
The precision of the embedding net parameters.
402
+
smooth : bool, optional
403
+
Whether to use smoothness in processes such as attention weights calculation.
404
+
exclude_types : list[list[int]], optional
405
+
The excluded pairs of types which have no interaction with each other.
406
+
For example, `[[0, 1]]` means no interaction between type 0 and type 1.
407
+
env_protection : float, optional
408
+
Protection parameter to prevent division by zero errors during environment matrix calculations.
409
+
For example, when using paddings, there may be zero distances of neighbors, which may make division by zero error during environment matrix calculations without protection.
410
+
trainable : bool, optional
411
+
If the parameters are trainable.
412
+
seed : int, optional
413
+
(Unused yet) Random seed for parameter initialization.
414
+
add_tebd_to_repinit_out : bool, optional
415
+
Whether to add type embedding to the output representation from repinit before inputting it into repformer.
416
+
use_econf_tebd : bool, Optional
417
+
Whether to use electronic configuration type embedding.
418
+
use_tebd_bias : bool, Optional
419
+
Whether to use bias in the type embedding layer.
420
+
type_map : list[str], Optional
421
+
A list of strings. Give the name to each type of atoms.
422
+
423
+
Returns
424
+
-------
425
+
descriptor: torch.Tensor
426
+
the descriptor of shape nf x nloc x g1_dim.
427
+
invariant single-atom representation.
428
+
g2: torch.Tensor
429
+
invariant pair-atom representation.
430
+
h2: torch.Tensor
431
+
equivariant pair-atom representation.
432
+
rot_mat: torch.Tensor
433
+
rotation matrix for equivariant fittings
434
+
sw: torch.Tensor
435
+
The switch function for decaying inverse distance.
436
+
437
+
References
438
+
----------
439
+
.. [1] Zhang, D., Liu, X., Zhang, X. et al. DPA-2: a
440
+
large atomic model as a multi-task learner. npj
441
+
Comput Mater 10, 293 (2024). https://doi.org/10.1038/s41524-024-01493-2
442
+
"""
443
+
372
444
def__init__(
373
445
self,
374
446
ntypes: int,
@@ -389,60 +461,6 @@ def __init__(
389
461
use_tebd_bias: bool=False,
390
462
type_map: list[str] |None=None,
391
463
) ->None:
392
-
r"""The DPA-2 descriptor[1]_.
393
-
394
-
Parameters
395
-
----------
396
-
repinit : Union[RepinitArgs, dict]
397
-
The arguments used to initialize the repinit block, see docstr in `RepinitArgs` for details information.
398
-
repformer : Union[RepformerArgs, dict]
399
-
The arguments used to initialize the repformer block, see docstr in `RepformerArgs` for details information.
400
-
concat_output_tebd : bool, optional
401
-
Whether to concat type embedding at the output of the descriptor.
402
-
precision : str, optional
403
-
The precision of the embedding net parameters.
404
-
smooth : bool, optional
405
-
Whether to use smoothness in processes such as attention weights calculation.
406
-
exclude_types : list[list[int]], optional
407
-
The excluded pairs of types which have no interaction with each other.
408
-
For example, `[[0, 1]]` means no interaction between type 0 and type 1.
409
-
env_protection : float, optional
410
-
Protection parameter to prevent division by zero errors during environment matrix calculations.
411
-
For example, when using paddings, there may be zero distances of neighbors, which may make division by zero error during environment matrix calculations without protection.
412
-
trainable : bool, optional
413
-
If the parameters are trainable.
414
-
seed : int, optional
415
-
(Unused yet) Random seed for parameter initialization.
416
-
add_tebd_to_repinit_out : bool, optional
417
-
Whether to add type embedding to the output representation from repinit before inputting it into repformer.
418
-
use_econf_tebd : bool, Optional
419
-
Whether to use electronic configuration type embedding.
420
-
use_tebd_bias : bool, Optional
421
-
Whether to use bias in the type embedding layer.
422
-
type_map : list[str], Optional
423
-
A list of strings. Give the name to each type of atoms.
424
-
425
-
Returns
426
-
-------
427
-
descriptor: torch.Tensor
428
-
the descriptor of shape nf x nloc x g1_dim.
429
-
invariant single-atom representation.
430
-
g2: torch.Tensor
431
-
invariant pair-atom representation.
432
-
h2: torch.Tensor
433
-
equivariant pair-atom representation.
434
-
rot_mat: torch.Tensor
435
-
rotation matrix for equivariant fittings
436
-
sw: torch.Tensor
437
-
The switch function for decaying inverse distance.
438
-
439
-
References
440
-
----------
441
-
.. [1] Zhang, D., Liu, X., Zhang, X. et al. DPA-2: a
442
-
large atomic model as a multi-task learner. npj
443
-
Comput Mater 10, 293 (2024). https://doi.org/10.1038/s41524-024-01493-2
0 commit comments