@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class GroupNormOptions extends Pointer
GroupNorm
module.
Example:
GroupNorm model(GroupNormOptions(2, 2).eps(2e-5).affine(false));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
GroupNormOptions(long num_groups,
long num_channels) |
GroupNormOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
affine() |
DoublePointer |
eps() |
LongPointer |
num_channels() |
LongPointer |
num_groups() |
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 GroupNormOptions(Pointer p)
Pointer(Pointer)
.@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer num_groups()
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer num_channels()
@ByRef @NoException(value=true) public DoublePointer eps()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer affine()
Copyright © 2024. All rights reserved.