@Namespace(value="torch::nn") @Properties(inherit=torch.class) public class CosineSimilarityOptions extends Pointer
CosineSimilarity
module.
Example:
CosineSimilarity model(CosineSimilarityOptions().dim(0).eps(0.5));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CosineSimilarityOptions()
Default native constructor.
|
CosineSimilarityOptions(long size)
Native array allocator.
|
CosineSimilarityOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
LongPointer |
dim() |
DoublePointer |
eps() |
CosineSimilarityOptions |
getPointer(long i) |
CosineSimilarityOptions |
position(long position) |
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 CosineSimilarityOptions()
public CosineSimilarityOptions(long size)
Pointer.position(long)
.public CosineSimilarityOptions(Pointer p)
Pointer(Pointer)
.public CosineSimilarityOptions position(long position)
public CosineSimilarityOptions getPointer(long i)
getPointer
in class Pointer
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer dim()
@ByRef @NoException(value=true) public DoublePointer eps()
Copyright © 2024. All rights reserved.