tf.decode_csv

tf.decode_csv

tf.decode_csv

decode_csv(
    records,
    record_defaults,
    field_delim=None,
    name=None
)

Defined in tensorflow/python/ops/gen_parsing_ops.py.

See the guide: Inputs and Readers > Converting

Convert CSV records to tensors. Each column maps to one tensor.

RFC 4180 format is expected for the CSV records. (https://tools.ietf.org/html/rfc4180) Note that we allow leading and trailing spaces with int or float field.

Args: