#include <parsing_ops.h>
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.
Arguments:
Optional attributes (see Attrs
):
Returns:
OutputList
: Each tensor will have the same shape as records. Constructors and Destructors | |
---|---|
DecodeCSV(const ::tensorflow::Scope & scope, ::tensorflow::Input records, ::tensorflow::InputList record_defaults) | |
DecodeCSV(const ::tensorflow::Scope & scope, ::tensorflow::Input records, ::tensorflow::InputList record_defaults, const DecodeCSV::Attrs & attrs) |
Public attributes | |
---|---|
output |
Public functions | |
---|---|
operator[](size_t index) const |
Public static functions | |
---|---|
FieldDelim(StringPiece x) |
Structs | |
---|---|
tensorflow::ops::DecodeCSV::Attrs | Optional attribute setters for DecodeCSV. |
::tensorflow::OutputList output
DecodeCSV( const ::tensorflow::Scope & scope, ::tensorflow::Input records, ::tensorflow::InputList record_defaults )
DecodeCSV( const ::tensorflow::Scope & scope, ::tensorflow::Input records, ::tensorflow::InputList record_defaults, const DecodeCSV::Attrs & attrs )
::tensorflow::Output operator[]( size_t index ) const
Attrs FieldDelim( StringPiece x )
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/decode-c-s-v.html