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