Object#
- class sionna.phy.object.Object(*args: Any, precision: str | None = None, device: str | None = None, **kwargs: Any)[source]#
Bases:
torch.nn.modules.module.ModuleBase class for Sionna PHY objects.
- Parameters:
precision (str | None) – Floating-point precision (‘single’ or ‘double’) to be used within the block. If None,
precisionis used. Defaults to None.device (str | None) – Device for computation (e.g., ‘cpu’, ‘cuda:0’) to be used within the block. If None,
deviceis used. Defaults to None.args (Any)
kwargs (Any)
Attributes
- property cdtype: torch.dtype#
Get the PyTorch complex-valued dtype based on the current precision.
- property dtype: torch.dtype#
Get the PyTorch real-valued dtype based on the current precision.
- property np_rng: numpy.random._generator.Generator#
Get the NumPy random number generator.
- property precision: Literal['single', 'double']#
Get the floating-point precision (‘single’ or ‘double’).
- property py_rng: random.Random#
Get the Python random number generator.
- property torch_rng: torch._C.Generator#
Get the PyTorch random number generator for the object’s device.