@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class LayerNormOptions extends Pointer
LayerNorm
module.
Example:
LayerNorm model(LayerNormOptions({2,
2}).elementwise_affine(false).eps(2e-5));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LayerNormOptions(LongVector normalized_shape) |
LayerNormOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
elementwise_affine() |
DoublePointer |
eps() |
LongVector |
normalized_shape() |
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 LayerNormOptions(Pointer p)
Pointer(Pointer)
.public LayerNormOptions(@ByVal @Cast(value="std::vector<int64_t>*") LongVector normalized_shape)
@Cast(value="std::vector<int64_t>*") @ByRef @NoException(value=true) public LongVector normalized_shape()
@ByRef @NoException(value=true) public DoublePointer eps()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer elementwise_affine()
Copyright © 2024. All rights reserved.