@Name(value="torch::OrderedDict<std::string,torch::Tensor>::Item") @NoOffset @Properties(inherit=torch.class) public class StringTensorDictItem extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
StringTensorDictItem(BytePointer key,
Tensor value)
Constructs a new item.
|
StringTensorDictItem(Pointer p)
Pointer cast constructor.
|
StringTensorDictItem(String key,
Tensor value) |
Modifier and Type | Method and Description |
---|---|
Tensor |
access()
Allows access to the value using the arrow operator.
|
BytePointer |
key()
Returns a reference to the key.
|
Tensor |
multiply()
Returns a reference to the value.
|
StringTensorPair |
pair()
Returns a
(key, value) pair. |
Tensor |
value()
Returns a reference to the value.
|
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 StringTensorDictItem(Pointer p)
Pointer(Pointer)
.public StringTensorDictItem(@StdString BytePointer key, @ByVal Tensor value)
public StringTensorDictItem(@StdString String key, @ByVal Tensor value)
@ByRef @Name(value="operator *") public Tensor multiply()
@Name(value="operator ->") public Tensor access()
@StdString @NoException(value=true) public BytePointer key()
@ByRef @NoException(value=true) public Tensor value()
@Cast(value="const std::pair<std::string,torch::Tensor>*") @ByRef @NoException(value=true) public StringTensorPair pair()
(key, value)
pair.Copyright © 2024. All rights reserved.