텐서플로:: 작전:: 디코드CSV
#include <parsing_ops.h>
CSV 레코드를 텐서로 변환합니다.
요약
각 열은 하나의 텐서에 매핑됩니다.
CSV 레코드에는 RFC 4180 형식이 필요합니다. ( https://tools.ietf.org/html/rfc4180 ) int 또는 float 필드가 있는 선행 및 후행 공백을 허용합니다.
인수:
- 범위: 범위 개체
- 레코드: 각 문자열은 csv의 레코드/행이며 모든 레코드는 동일한 형식을 가져야 합니다.
- record_defaults: 입력 레코드의 열당 하나의 텐서, 해당 열에 대한 스칼라 기본값 또는 열이 필요한 경우 빈 벡터가 있습니다.
선택적 속성( Attrs
참조):
- field_delim: 레코드의 필드를 구분하는 문자 구분 기호입니다.
- use_quote_delim: false인 경우 문자열 필드 내에서 큰따옴표를 일반 문자로 취급합니다(RFC 4180, Section 2, Bullet 5 무시).
- na_value: NA/NaN으로 인식할 추가 문자열입니다.
보고:
-
OutputList
: 각 텐서는 레코드와 같은 모양을 갖습니다.
생성자와 소멸자 | |
---|---|
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) |
공개 속성 | |
---|---|
operation | |
output |
공공 기능 | |
---|---|
operator[] (size_t index) const |
공개 정적 함수 | |
---|---|
FieldDelim (StringPiece x) | |
NaValue (StringPiece x) | |
SelectCols (const gtl::ArraySlice< int > & x) | |
UseQuoteDelim (bool x) |
구조체 | |
---|---|
tensorflow:: ops:: DecodeCSV:: 속성 | DecodeCSV 에 대한 선택적 속성 설정자. |
공개 속성
작업
Operation operation
산출
::tensorflow::OutputList output
공공 기능
디코드CSV
DecodeCSV( const ::tensorflow::Scope & scope, ::tensorflow::Input records, ::tensorflow::InputList record_defaults )
디코드CSV
DecodeCSV( const ::tensorflow::Scope & scope, ::tensorflow::Input records, ::tensorflow::InputList record_defaults, const DecodeCSV::Attrs & attrs )
운영자[]
::tensorflow::Output operator[]( size_t index ) const
공개 정적 함수
FieldDelim
Attrs FieldDelim( StringPiece x )
나밸류
Attrs NaValue( StringPiece x )
SelectCols
Attrs SelectCols( const gtl::ArraySlice< int > & x )
UseQuoteDelim
Attrs UseQuoteDelim( bool x )