parameters: (v, dtype=None, name=None, as_ref=False)
return_statement: return _autopacking_helper(v, inferred_dtype, name or "packed")
docstring: Tensor conversion function that automatically packs arguments.
docstring_summary: Tensor conversion function that automatically packs arguments.
docstring_tokens: Tensor conversion function that automatically packs arguments .
function: def _autopacking_conversion_function(v, dtype=None, name=None, as_ref=False):
    """Tensor conversion function that automatically packs arguments."""
    if as_ref:
      return NotImplemented
    inferred_dtype = _get_dtype_from_nested_lists(v)
    if inferred_dtype is None:
      # We did not find any tensor-like objects in the nested lists, so defer to
      # other conversion functions.
      return NotImplemented
    if dtype is not None and dtype != inferred_dtype:
      return NotImplemented
    return _autopacking_helper(v, inferred_dtype, name or "packed")
function_tokens: def _autopacking_conversion_function ( v , dtype = None , name = None , as_ref = False ) : if as_ref : return NotImplemented inferred_dtype = _get_dtype_from_nested_lists ( v ) if inferred_dtype is None : # We did not find any tensor-like objects in the nested lists, so defer to # other conversion functions. return NotImplemented if dtype is not None and dtype != inferred_dtype : return NotImplemented return _autopacking_helper ( v , inferred_dtype , name or "packed" )