tft.experimental.annotate_sparse_output_shape
Annotates a sparse output to have a given dense_shape.
tft.experimental.annotate_sparse_output_shape(
tensor: tf.SparseTensor, shape: Union[Sequence[int], tf.Tensor]
)
Args |
tensor
|
An SparseTensor to be annotated.
|
shape
|
A dense_shape to annotate tensor with. Note that this shape does
not include batch_size.
|
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.
Last updated 2024-11-01 UTC.
[null,null,["Last updated 2024-11-01 UTC."],[],[]]