mindscience.e3nn.o3.identity_angles

mindscience.e3nn.o3.identity_angles(*shape, dtype=mindspore.float32)[source]

Return the identity set of Euler angles \((\alpha, \beta, \gamma)\) that corresponds to "no rotation". Whatever shape is requested, the three returned tensors are filled with zeros.

Parameters
  • shape (tuple[int]) – The shape of additional dimensions.

  • dtype (mindspore.dtype, optional) – The type of input tensor. Default: mindspore.float32 .

Returns

tuple[Tensor]. A tuple of \(alpha\) Tensors, each of shape shape.

Raises
  • TypeError – If dtype of 'shape' is not tuple.

  • TypeError – If dtype of the element of 'shape' is not int.

Examples

>>> from mindscience.e3nn.o3 import identity_angles
>>> m = identity_angles((1))
>>> print(m)
(Tensor(shape=[1], dtype=Float32, value= [ 0.00000000e+00]), Tensor(shape=[1], dtype=Float32,
value= [ 0.00000000e+00]), Tensor(shape=[1], dtype=Float32, value= [ 0.00000000e+00]))