@Namespace(value="torch::nn::functional") @Properties(inherit=torch.class) public class BatchNormFuncOptions extends Pointer
torch::nn::functional::batch_norm.
Example:
namespace F = torch::nn::functional;
F::batch_norm(input, mean, variance,
F::BatchNormFuncOptions().weight(weight).bias(bias).momentum(0.1).eps(1e-05).training(false));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
BatchNormFuncOptions()
Default native constructor.
|
BatchNormFuncOptions(long size)
Native array allocator.
|
BatchNormFuncOptions(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Tensor |
bias() |
DoublePointer |
eps() |
BatchNormFuncOptions |
getPointer(long i) |
DoubleOptional |
momentum() |
BatchNormFuncOptions |
position(long position) |
BoolPointer |
training() |
Tensor |
weight() |
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, zeropublic BatchNormFuncOptions()
public BatchNormFuncOptions(long size)
Pointer.position(long).public BatchNormFuncOptions(Pointer p)
Pointer(Pointer).public BatchNormFuncOptions position(long position)
public BatchNormFuncOptions getPointer(long i)
getPointer in class Pointer@ByRef @NoException(value=true) public Tensor weight()
@ByRef @NoException(value=true) public Tensor bias()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer training()
@ByRef @NoException(value=true) public DoubleOptional momentum()
@ByRef @NoException(value=true) public DoublePointer eps()
Copyright © 2024. All rights reserved.