@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class UnflattenOptions extends Pointer
Unflatten
module.
Note: If input tensor is named, use dimname and namedshape arguments.
Example:
Unflatten unnamed_model(UnflattenOptions(0, {2, 2}));
Unflatten named_model(UnflattenOptions("B", {{"B1", 2}, {"B2", 2}}));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
UnflattenOptions(BytePointer dimname,
StringLongVector namedshape) |
UnflattenOptions(long dim,
LongVector sizes) |
UnflattenOptions(Pointer p)
Pointer cast constructor.
|
UnflattenOptions(String dimname,
StringLongVector namedshape) |
Modifier and Type | Method and Description |
---|---|
LongPointer |
dim() |
BytePointer |
dimname() |
StringLongVector |
namedshape() |
LongVector |
sizes() |
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 UnflattenOptions(Pointer p)
Pointer(Pointer)
.public UnflattenOptions(@Cast(value="int64_t") long dim, @ByVal @Cast(value="std::vector<int64_t>*") LongVector sizes)
public UnflattenOptions(@Cast(value="const char*") BytePointer dimname, @ByVal @Cast(value="torch::nn::UnflattenOptions::namedshape_t*") StringLongVector namedshape)
public UnflattenOptions(String dimname, @ByVal @Cast(value="torch::nn::UnflattenOptions::namedshape_t*") StringLongVector namedshape)
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer dim()
@StdString @ByRef @NoException(value=true) public BytePointer dimname()
@Cast(value="std::vector<int64_t>*") @ByRef @NoException(value=true) public LongVector sizes()
@Cast(value="torch::nn::UnflattenOptions::namedshape_t*") @ByRef @NoException(value=true) public StringLongVector namedshape()
Copyright © 2024. All rights reserved.