@Name(value="c10::ivalue::PyObjectHolder") @Properties(inherit=torch.class) public class PyObjectHolder extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
PyObjectHolder(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
TensorVector |
extractTensors() |
Pointer |
getPyObject() |
IValue |
toIValue(Type.TypePtr type) |
IValue |
toIValue(Type.TypePtr type,
IntOptional N) |
BytePointer |
toStr() |
InferredType |
tryToInferType() |
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 PyObjectHolder(Pointer p)
Pointer(Pointer)
.@ByVal public InferredType tryToInferType()
@ByVal public IValue toIValue(@Const @ByRef Type.TypePtr type, @ByVal(nullValue="c10::optional<int32_t>(c10::nullopt)") IntOptional N)
@ByVal public IValue toIValue(@Const @ByRef Type.TypePtr type)
@StdString public BytePointer toStr()
@Cast(value={"","std::vector<torch::Tensor>"}) @StdMove public TensorVector extractTensors()
Copyright © 2024. All rights reserved.