@Namespace(value="torch::nn") @Properties(inherit=torch.class) public class FlattenOptions extends Pointer
Flatten
module.
Example:
Flatten model(FlattenOptions().start_dim(2).end_dim(4));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FlattenOptions()
Default native constructor.
|
FlattenOptions(long size)
Native array allocator.
|
FlattenOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
LongPointer |
end_dim() |
FlattenOptions |
getPointer(long i) |
FlattenOptions |
position(long position) |
LongPointer |
start_dim() |
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, zero
public FlattenOptions()
public FlattenOptions(long size)
Pointer.position(long)
.public FlattenOptions(Pointer p)
Pointer(Pointer)
.public FlattenOptions position(long position)
public FlattenOptions getPointer(long i)
getPointer
in class Pointer
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer start_dim()
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer end_dim()
Copyright © 2024. All rights reserved.