@Namespace(value="torch::nn::functional") @NoOffset @Properties(inherit=torch.class) public class LayerNormFuncOptions extends Pointer
torch::nn::functional::layer_norm
.
Example:
namespace F = torch::nn::functional;
F::layer_norm(input, F::LayerNormFuncOptions({2, 2}).eps(2e-5));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LayerNormFuncOptions(LongVector normalized_shape) |
LayerNormFuncOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Tensor |
bias() |
DoublePointer |
eps() |
LongVector |
normalized_shape() |
Tensor |
weight() |
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 LayerNormFuncOptions(Pointer p)
Pointer(Pointer)
.public LayerNormFuncOptions(@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 Tensor weight()
@ByRef @NoException(value=true) public Tensor bias()
@ByRef @NoException(value=true) public DoublePointer eps()
Copyright © 2024. All rights reserved.