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