@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class OperandInfo extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
OperandInfo() |
OperandInfo(long size)
Native array allocator.
|
OperandInfo(Pointer p)
Pointer cast constructor.
|
OperandInfo(TensorBaseMaybeOwned t) |
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 OperandInfo(Pointer p)
Pointer(Pointer)
.public OperandInfo(long size)
Pointer.position(long)
.public OperandInfo()
public OperandInfo(@Cast(value={"","c10::MaybeOwned<at::TensorBase>&&"}) @StdMove TensorBaseMaybeOwned t)
public OperandInfo position(long position)
public OperandInfo getPointer(long i)
getPointer
in class Pointer
public Pointer data()
public OperandInfo data(Pointer setter)
@ByRef @Cast(value="at::OperandInfo::StrideVector*") public SymDimVector stride_bytes()
public OperandInfo stride_bytes(SymDimVector setter)
@ByRef public DeviceOptional device()
public OperandInfo device(DeviceOptional setter)
public torch.ScalarType target_dtype()
public OperandInfo target_dtype(torch.ScalarType setter)
public torch.ScalarType current_dtype()
public OperandInfo current_dtype(torch.ScalarType setter)
@ByVal public TensorOptions options()
public OperandInfo is_output(boolean setter)
public OperandInfo will_resize(boolean setter)
public OperandInfo is_read_write(boolean setter)
public void validate()
@Const @ByRef public Tensor tensor()
@Const @ByRef public TensorBase tensor_base()
public void tensor(@Cast(value={"","c10::MaybeOwned<at::TensorBase>&&"}) @StdMove TensorBaseMaybeOwned tensor)
@Const @ByRef public TensorBase original_tensor_base()
public void exchange_tensor(@Cast(value={"","c10::MaybeOwned<at::TensorBase>&&"}) @StdMove TensorBaseMaybeOwned new_tensor)
public void restore_original_tensor()
Copyright © 2024. All rights reserved.