@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class DecodeCSV extends Pointer
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:
* scope: A Scope object
* records: Each string is a record/row in the csv and all records should have
the same format.
* record_defaults: One tensor per column of the input record, with either a
scalar default value for that column or an empty vector if the column is
required.
Optional attributes (see Attrs
):
* field_delim: char delimiter to separate fields in a record.
* use_quote_delim: If false, treats double quotation marks as regular
characters inside of the string fields (ignoring RFC 4180, Section 2,
Bullet 5).
* na_value: Additional string to recognize as NA/NaN.
Returns:
* OutputList
: Each tensor will have the same shape as records.
Modifier and Type | Class and Description |
---|---|
static class |
DecodeCSV.Attrs
Optional attribute setters for DecodeCSV
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DecodeCSV(Pointer p)
Pointer cast constructor.
|
DecodeCSV(Scope scope,
Input records,
InputList record_defaults) |
DecodeCSV(Scope scope,
Input records,
InputList record_defaults,
DecodeCSV.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static DecodeCSV.Attrs |
FieldDelim(BytePointer x) |
static DecodeCSV.Attrs |
FieldDelim(String x) |
Output |
get(long index) |
static DecodeCSV.Attrs |
NaValue(BytePointer x) |
static DecodeCSV.Attrs |
NaValue(String x) |
Operation |
operation() |
DecodeCSV |
operation(Operation setter) |
OutputVector |
output() |
DecodeCSV |
output(OutputVector setter) |
static DecodeCSV.Attrs |
SelectCols(int... x) |
static DecodeCSV.Attrs |
SelectCols(IntBuffer x) |
static DecodeCSV.Attrs |
SelectCols(IntPointer x) |
static DecodeCSV.Attrs |
UseQuoteDelim(boolean x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public DecodeCSV(Pointer p)
Pointer(Pointer)
.public DecodeCSV(@Const @ByRef Scope scope, @ByVal Input records, @ByVal InputList record_defaults)
@ByVal public static DecodeCSV.Attrs FieldDelim(@tensorflow.StringPiece BytePointer x)
@ByVal public static DecodeCSV.Attrs FieldDelim(@tensorflow.StringPiece String x)
@ByVal public static DecodeCSV.Attrs UseQuoteDelim(@Cast(value="bool") boolean x)
@ByVal public static DecodeCSV.Attrs NaValue(@tensorflow.StringPiece BytePointer x)
@ByVal public static DecodeCSV.Attrs NaValue(@tensorflow.StringPiece String x)
@ByVal public static DecodeCSV.Attrs SelectCols(@tensorflow.ArraySlice IntPointer x)
@ByVal public static DecodeCSV.Attrs SelectCols(@tensorflow.ArraySlice IntBuffer x)
@ByVal public static DecodeCSV.Attrs SelectCols(@tensorflow.ArraySlice int... x)
@ByRef @Cast(value="tensorflow::OutputList*") public OutputVector output()
public DecodeCSV output(OutputVector setter)
Copyright © 2022. All rights reserved.