View source on GitHub |
Returns a list containing static and dynamic values for the dimensions.
tfm.vision.sampling_ops.combined_static_and_dynamic_shape(
tensor
)
Returns a list of static and dynamic values for shape dimensions. This is useful to preserve static shapes when available in reshape operation.
Args | |
---|---|
tensor
|
A tensor of any type. |
Returns | |
---|---|
A list of size tensor.shape.ndims containing integers or a scalar tensor. |