MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / unique

Function unique

python/paddle/tensor/manipulation.py:3719–3728  ·  view source on GitHub ↗
(
    x: Tensor,
    return_index: Literal[True] = ...,
    return_inverse: Literal[True] = ...,
    return_counts: Literal[True] = ...,
    axis: int | None = ...,
    dtype: DTypeLike = ...,
    sorted: bool = ...,
    name: str | None = ...,
)

Source from the content-addressed store, hash-verified

3717
3718@overload
3719def unique(
3720 x: Tensor,
3721 return_index: Literal[True] = ...,
3722 return_inverse: Literal[True] = ...,
3723 return_counts: Literal[True] = ...,
3724 axis: int | None = ...,
3725 dtype: DTypeLike = ...,
3726 sorted: bool = ...,
3727 name: str | None = ...,
3728) -> tuple[Tensor, Tensor, Tensor, Tensor]: ...
3729
3730
3731@overload

Callers

nothing calls this directly

Calls 12

append_opMethod · 0.95
in_pir_modeFunction · 0.85
check_variable_and_dtypeFunction · 0.85
LayerHelperClass · 0.85
to_tensorMethod · 0.80
check_typeFunction · 0.50
check_dtypeFunction · 0.50
cloneMethod · 0.45
appendMethod · 0.45
uniqueMethod · 0.45

Tested by

no test coverage detected