@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class InitializeTableFromTextFile extends Pointer
delimiter
or the line number (starting from zero).
Where to extract the key and value from a line is specified by key_index
and
value_index
.
- A value of -1 means use the line number(starting from zero), expects int64
.
- A value of -2 means use the whole line content, expects string
.
- A value >= 0 means use the index (starting at zero) of the split line based
on delimiter
.
Arguments:
* scope: A Scope object
* table_handle: Handle to a table which will be initialized.
* filename: Filename of a vocabulary text file.
* key_index: Column index in a line to get the table key
values from.
* value_index: Column index that represents information of a line to get the table
value
values from.
Optional attributes (see Attrs
):
* vocab_size: Number of elements of the file, use -1 if unknown.
* delimiter: Delimiter to separate fields in a line.
Returns:
* the created Operation
Modifier and Type | Class and Description |
---|---|
static class |
InitializeTableFromTextFile.Attrs
Optional attribute setters for InitializeTableFromTextFile
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
InitializeTableFromTextFile(Pointer p)
Pointer cast constructor.
|
InitializeTableFromTextFile(Scope scope,
Input table_handle,
Input filename,
long key_index,
long value_index) |
InitializeTableFromTextFile(Scope scope,
Input table_handle,
Input filename,
long key_index,
long value_index,
InitializeTableFromTextFile.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Operation |
asOperation() |
static InitializeTableFromTextFile.Attrs |
Delimiter(BytePointer x) |
static InitializeTableFromTextFile.Attrs |
Delimiter(String x) |
Operation |
operation() |
InitializeTableFromTextFile |
operation(Operation setter) |
static InitializeTableFromTextFile.Attrs |
VocabSize(long 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 InitializeTableFromTextFile(Pointer p)
Pointer(Pointer)
.public InitializeTableFromTextFile(@Const @ByRef Scope scope, @ByVal Input table_handle, @ByVal Input filename, @Cast(value="tensorflow::int64") long key_index, @Cast(value="tensorflow::int64") long value_index)
@ByVal public static InitializeTableFromTextFile.Attrs VocabSize(@Cast(value="tensorflow::int64") long x)
@ByVal public static InitializeTableFromTextFile.Attrs Delimiter(@tensorflow.StringPiece BytePointer x)
@ByVal public static InitializeTableFromTextFile.Attrs Delimiter(@tensorflow.StringPiece String x)
public InitializeTableFromTextFile operation(Operation setter)
Copyright © 2022. All rights reserved.