fnscalar_tensor→Tensorscalar_tensor(s: _int | _float | _bool | _complex | Tensor, dtype: DTypeLike = None, layout: object = None, device: DeviceLike = None, requires_grad: _bool = False)sourceedit