(shape: Iterable[tf.Dimension])
return [dim.value for dim in shape]
Convert a Tensorflow shape to a list of ints. Retained for backwards compatibility -- use TensorShape.as_list() in new code.
Convert a Tensorflow shape to a list of ints. Retained for backwards compatibility -- use TensorShape.as_list() in new code.
Convert a Tensorflow shape to a list of ints . Retained for backwards compatibility -- use TensorShape . as_list () in new code .
def shape_to_list(shape: Iterable[tf.Dimension]) -> List[Union[int, None]]:
    """Convert a Tensorflow shape to a list of ints. Retained for backwards compatibility -- use TensorShape.as_list() in new code."""
    return [dim.value for dim in shape]
def shape_to_list ( shape : Iterable [ tf . Dimension ] ) -> List [ Union [ int , None ] ] : return [ dim . value for dim in shape ]