tf.raw_ops.SetSize
Stay organized with collections
Save and categorize content based on your preferences.
Number of unique elements along last dimension of input set
.
tf.raw_ops.SetSize(
set_indices, set_values, set_shape, validate_indices=True, name=None
)
Input set
is a SparseTensor
represented by set_indices
, set_values
,
and set_shape
. The last dimension contains values in a set, duplicates are
allowed but ignored.
If validate_indices
is True
, this op validates the order and range of set
indices.
Args |
set_indices
|
A Tensor of type int64 .
2D Tensor , indices of a SparseTensor .
|
set_values
|
A Tensor . Must be one of the following types: int8 , int16 , int32 , int64 , uint8 , uint16 , string .
1D Tensor , values of a SparseTensor .
|
set_shape
|
A Tensor of type int64 .
1D Tensor , shape of a SparseTensor .
|
validate_indices
|
An optional bool . Defaults to True .
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type int32 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2022-10-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[]]