parameters: (tensor, shape, ctx)
return_statement: return result
docstring: Eager-only version of Reshape op; requires tensor is an eager Tensor.
docstring_summary: Eager-only version of Reshape op; requires tensor is an eager Tensor.
docstring_tokens: Eager - only version of Reshape op ; requires tensor is an eager Tensor .
function: def _eager_reshape(tensor, shape, ctx):
    """Eager-only version of Reshape op; requires tensor is an eager Tensor."""
    attr_t = tensor._datatype_enum()  # pylint: disable=protected-access
    attr_tshape, (shape,) = execute.args_to_matching_eager(
        [shape], ctx, [dtypes.int32, dtypes.int64], dtypes.int32)
    inputs_flat = [tensor, shape]
    attrs = ("T", attr_t, "Tshape", attr_tshape)
    result, = execute.execute(
        b"Reshape", 1, inputs=inputs_flat, attrs=attrs, ctx=ctx)
    return result
function_tokens: def _eager_reshape ( tensor , shape , ctx ) : attr_t = tensor . _datatype_enum ( ) # pylint: disable=protected-access attr_tshape , ( shape , ) = execute . args_to_matching_eager ( [ shape ] , ctx , [ dtypes . int32 , dtypes . int64 ] , dtypes . int32 ) inputs_flat = [ tensor , shape ] attrs = ( "T" , attr_t , "Tshape" , attr_tshape ) result , = execute . execute ( b"Reshape" , 1 , inputs = inputs_flat , attrs = attrs , ctx = ctx ) return result