('torch.Generator'), NoneType] = None
device: typing.Optional[ForwardRef('torch.device')] = None
dtype: typing.Optional[ForwardRef('torch.dtype')] = None
layout: typing.Optional[ForwardRef('torch.layout')] = None

)



This is a helper function that allows to create random tensors on the desired device with the desired dtype. When
passing a list of generators one can seed each batched size individually. If CPU generators are passed the tensor
w