tfm.vision.sampling_ops.combined_static_and_dynamic_shape

Returns a list containing static and dynamic values for the dimensions.

Returns a list of static and dynamic values for shape dimensions. This is useful to preserve static shapes when available in reshape operation.

tensor A tensor of any type.

A list of size tensor.shape.ndims containing integers or a scalar tensor.