xlnstorch.nn.init.ones_

Contents

xlnstorch.nn.init.ones_#

xlnstorch.nn.init.ones_(tensor)#

Fills the input tensor with ones.

Parameters:

tensor (LNSTensor) – The tensor to fill with ones.

Returns:

The input tensor filled with ones.

Return type:

LNSTensor