@Namespace(value="torch::nn") @Properties(inherit=torch.class) public class EmbeddingFromPretrainedOptions extends Pointer
Embedding::from_pretrained
function.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
EmbeddingFromPretrainedOptions()
Default native constructor.
|
EmbeddingFromPretrainedOptions(long size)
Native array allocator.
|
EmbeddingFromPretrainedOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
freeze() |
EmbeddingFromPretrainedOptions |
getPointer(long i) |
DoubleOptional |
max_norm() |
DoublePointer |
norm_type() |
LongOptional |
padding_idx() |
EmbeddingFromPretrainedOptions |
position(long position) |
BoolPointer |
scale_grad_by_freq() |
BoolPointer |
sparse() |
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 EmbeddingFromPretrainedOptions()
public EmbeddingFromPretrainedOptions(long size)
Pointer.position(long)
.public EmbeddingFromPretrainedOptions(Pointer p)
Pointer(Pointer)
.public EmbeddingFromPretrainedOptions position(long position)
public EmbeddingFromPretrainedOptions getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer freeze()
@ByRef @NoException(value=true) public LongOptional padding_idx()
@ByRef @NoException(value=true) public DoubleOptional max_norm()
@ByRef @NoException(value=true) public DoublePointer norm_type()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer scale_grad_by_freq()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer sparse()
Copyright © 2024. All rights reserved.