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