parameters: (t)
return_statement: return array_ops.shape_internal(t, optimize=False)
docstring: Returns the shape of t or the variable it points to.
docstring_summary: Returns the shape of t or the variable it points to.
docstring_tokens: Returns the shape of t or the variable it points to .
function: def _resource_safe_shape(t):
    """Returns the shape of t or the variable it points to."""
    if t.dtype == dtypes.resource:
      while t.op.inputs:
        t = t.op.inputs[0]
      return tensor_shape.TensorShape(t.op.get_attr("shape"))
    return array_ops.shape_internal(t, optimize=False)
function_tokens: def _resource_safe_shape ( t ) : if t . dtype == dtypes . resource : while t . op . inputs : t = t . op . inputs [ 0 ] return tensor_shape . TensorShape ( t . op . get_attr ( "shape" ) ) return array_ops . shape_internal ( t , optimize = False )