randn_like#
- class brainstate.random.randn_like(input, *, dtype=None, key=None)#
Similar to
randn_likein torch.Returns a tensor with the same size as
inputthat is filled with random numbers from a normal distribution with mean 0 and variance 1.- Parameters:
input (
Array|ndarray|bool|number|bool|int|float|complex|Quantity) – thesizeof input will determine size of the output tensor.dtype (
str|type[Any] |dtype|SupportsDType|None) – the desired data type of returned Tensor. Default: ifNone, defaults to the dtype of input.key (
int|Array|ndarray|None) – the seed or key for the random.
- Return type:
Array