random_tucker#
- ivy.random_tucker(shape, rank, /, *, dtype=None, full=False, orthogonal=False, seed=None, non_negative=False)[source]#
Generate a random Tucker tensor.
- Parameters:
shape (
Sequence
[int
]) – shape of the tensor to generaterank (
Sequence
[int
]) – rank of the Tucker decomposition if int, the same rank is used for each mode otherwise, dimension of each modefull (
Optional
[bool
], default:False
) – if True, a full tensor is returned otherwise, the decomposed tensor is returnedorthogonal (
Optional
[bool
], default:False
) – if True, creates a tensor with orthogonal componentsseed (
Optional
[int
], default:None
) – seed for generating random numbersnon_negative (
Optional
[bool
], default:False
) –
- Return type:
Union
[TuckerTensor
,Array
]- Returns:
ivy.TuckerTensor