@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class WeakOrStrongCompilationUnit extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
WeakOrStrongCompilationUnit(CompilationUnit shared_cu) |
WeakOrStrongCompilationUnit(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
getStrongRefOrThrow() |
boolean |
holdingEmptyStrongRef() |
boolean |
holdingStrongRef() |
Pointer |
strong_ptr_() |
WeakOrStrongCompilationUnit |
strong_ptr_(Pointer setter) |
Pointer |
weak_ptr_() |
WeakOrStrongCompilationUnit |
weak_ptr_(Pointer setter) |
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 WeakOrStrongCompilationUnit(Pointer p)
Pointer(Pointer)
.public WeakOrStrongCompilationUnit(@SharedPtr CompilationUnit shared_cu)
@SharedPtr public CompilationUnit getStrongRefOrThrow()
@ByRef @Cast(value="c10::optional<std::shared_ptr<torch::jit::CompilationUnit> >*") public Pointer strong_ptr_()
public WeakOrStrongCompilationUnit strong_ptr_(Pointer setter)
@ByRef @Cast(value="c10::optional<std::weak_ptr<torch::jit::CompilationUnit> >*") public Pointer weak_ptr_()
public WeakOrStrongCompilationUnit weak_ptr_(Pointer setter)
Copyright © 2024. All rights reserved.