@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class ThresholdOptions extends Pointer
Threshold
module.
Example:
Threshold model(ThresholdOptions(42.42, 24.24).inplace(true));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ThresholdOptions(double threshold,
double value) |
ThresholdOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
inplace() |
DoublePointer |
threshold() |
DoublePointer |
value() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ThresholdOptions(Pointer p)
Pointer(Pointer)
.public ThresholdOptions(double threshold, double value)
@ByRef @NoException(value=true) public DoublePointer threshold()
@ByRef @NoException(value=true) public DoublePointer value()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer inplace()
Copyright © 2024. All rights reserved.