public static class FixedUnigramCandidateSampler.Attrs extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Attrs()
Default native constructor.
|
Attrs(long size)
Native array allocator.
|
Attrs(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
distortion_() |
FixedUnigramCandidateSampler.Attrs |
distortion_(float setter) |
FixedUnigramCandidateSampler.Attrs |
Distortion(float x)
The distortion is used to skew the unigram probability distribution.
|
FixedUnigramCandidateSampler.Attrs |
getPointer(long i) |
long |
num_reserved_ids_() |
FixedUnigramCandidateSampler.Attrs |
num_reserved_ids_(long setter) |
long |
num_shards_() |
FixedUnigramCandidateSampler.Attrs |
num_shards_(long setter) |
FixedUnigramCandidateSampler.Attrs |
NumReservedIds(long x)
Optionally some reserved IDs can be added in the range [0,
..., num_reserved_ids) by the users.
|
FixedUnigramCandidateSampler.Attrs |
NumShards(long x)
A sampler can be used to sample from a subset of the original range
in order to speed up the whole computation through parallelism.
|
FixedUnigramCandidateSampler.Attrs |
position(long position) |
long |
seed_() |
FixedUnigramCandidateSampler.Attrs |
seed_(long setter) |
FixedUnigramCandidateSampler.Attrs |
Seed(long x)
If either seed or seed2 are set to be non-zero, the random number
generator is seeded by the given seed.
|
long |
seed2_() |
FixedUnigramCandidateSampler.Attrs |
seed2_(long setter) |
FixedUnigramCandidateSampler.Attrs |
Seed2(long x)
An second seed to avoid seed collision.
|
long |
shard_() |
FixedUnigramCandidateSampler.Attrs |
shard_(long setter) |
FixedUnigramCandidateSampler.Attrs |
Shard(long x)
A sampler can be used to sample from a subset of the original range
in order to speed up the whole computation through parallelism.
|
FloatPointer |
unigrams_() |
FixedUnigramCandidateSampler.Attrs |
unigrams_(FloatPointer setter) |
FixedUnigramCandidateSampler.Attrs |
Unigrams(float... x) |
FixedUnigramCandidateSampler.Attrs |
Unigrams(FloatBuffer x) |
FixedUnigramCandidateSampler.Attrs |
Unigrams(FloatPointer x)
A list of unigram counts or probabilities, one per ID in sequential
order.
|
BytePointer |
vocab_file_() |
FixedUnigramCandidateSampler.Attrs |
vocab_file_(BytePointer setter) |
FixedUnigramCandidateSampler.Attrs |
VocabFile(BytePointer x)
Each valid line in this file (which should have a CSV-like format)
corresponds to a valid word ID.
|
FixedUnigramCandidateSampler.Attrs |
VocabFile(String x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Attrs()
public Attrs(long size)
Pointer.position(long)
.public Attrs(Pointer p)
Pointer(Pointer)
.public FixedUnigramCandidateSampler.Attrs position(long position)
public FixedUnigramCandidateSampler.Attrs getPointer(long i)
getPointer
in class Pointer
@ByVal public FixedUnigramCandidateSampler.Attrs VocabFile(@tensorflow.StringPiece BytePointer x)
@ByVal public FixedUnigramCandidateSampler.Attrs VocabFile(@tensorflow.StringPiece String x)
@ByVal public FixedUnigramCandidateSampler.Attrs Distortion(float x)
@ByVal public FixedUnigramCandidateSampler.Attrs NumReservedIds(@Cast(value="tensorflow::int64") long x)
@ByVal public FixedUnigramCandidateSampler.Attrs NumShards(@Cast(value="tensorflow::int64") long x)
@ByVal public FixedUnigramCandidateSampler.Attrs Shard(@Cast(value="tensorflow::int64") long x)
@ByVal public FixedUnigramCandidateSampler.Attrs Unigrams(@tensorflow.ArraySlice FloatPointer x)
@ByVal public FixedUnigramCandidateSampler.Attrs Unigrams(@tensorflow.ArraySlice FloatBuffer x)
@ByVal public FixedUnigramCandidateSampler.Attrs Unigrams(@tensorflow.ArraySlice float... x)
@ByVal public FixedUnigramCandidateSampler.Attrs Seed(@Cast(value="tensorflow::int64") long x)
@ByVal public FixedUnigramCandidateSampler.Attrs Seed2(@Cast(value="tensorflow::int64") long x)
@tensorflow.StringPiece public BytePointer vocab_file_()
public FixedUnigramCandidateSampler.Attrs vocab_file_(BytePointer setter)
public float distortion_()
public FixedUnigramCandidateSampler.Attrs distortion_(float setter)
public FixedUnigramCandidateSampler.Attrs num_reserved_ids_(long setter)
public FixedUnigramCandidateSampler.Attrs num_shards_(long setter)
public FixedUnigramCandidateSampler.Attrs shard_(long setter)
@tensorflow.ArraySlice public FloatPointer unigrams_()
public FixedUnigramCandidateSampler.Attrs unigrams_(FloatPointer setter)
public FixedUnigramCandidateSampler.Attrs seed_(long setter)
public FixedUnigramCandidateSampler.Attrs seed2_(long setter)
Copyright © 2022. All rights reserved.