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