Stay organized with collections Save and categorize content based on your preferences.

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.