tensorflow::ops::DecodeCSV::Attrs

#include <parsing_ops.h>

Optional attribute setters for DecodeCSV.

Summary

Public attributes

field_delim_ = ","
StringPiece
na_value_ = ""
StringPiece
select_cols_ = {}
gtl::ArraySlice< int >
use_quote_delim_ = true
bool

Public functions

FieldDelim(StringPiece x)
TF_MUST_USE_RESULT Attrs
char delimiter to separate fields in a record.
NaValue(StringPiece x)
TF_MUST_USE_RESULT Attrs
Additional string to recognize as NA/NaN.
SelectCols(const gtl::ArraySlice< int > & x)
TF_MUST_USE_RESULT Attrs
Defaults to [].
UseQuoteDelim(bool x)
TF_MUST_USE_RESULT Attrs
If false, treats double quotation marks as regular characters inside of the string fields (ignoring RFC 4180, Section 2, Bullet 5).

Public attributes

field_delim_

StringPiece tensorflow::ops::DecodeCSV::Attrs::field_delim_ = ","

na_value_

StringPiece tensorflow::ops::DecodeCSV::Attrs::na_value_ = ""

select_cols_

gtl::ArraySlice< int > tensorflow::ops::DecodeCSV::Attrs::select_cols_ = {}

use_quote_delim_

bool tensorflow::ops::DecodeCSV::Attrs::use_quote_delim_ = true

Public functions

FieldDelim

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::FieldDelim(
  StringPiece x
)

char delimiter to separate fields in a record.

Defaults to ","

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::NaValue(
  StringPiece x
)

Additional string to recognize as NA/NaN.

Defaults to ""

SelectCols

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::SelectCols(
  const gtl::ArraySlice< int > & x
)

Defaults to [].

UseQuoteDelim

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::UseQuoteDelim(
  bool x
)

If false, treats double quotation marks as regular characters inside of the string fields (ignoring RFC 4180, Section 2, Bullet 5).

Defaults to true