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