@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class Value extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Value(JitNode node_,
long offset_) |
Value(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
copyMetadata(Value from) |
BytePointer |
debugName() |
BytePointer |
debugNameBase() |
boolean |
hasDebugName() |
boolean |
hasUses() |
void |
inferTypeFrom(Pointer output) |
void |
inferTypeFrom(Tensor output) |
boolean |
isCompleteTensor() |
boolean |
mustBeNone() |
boolean |
mustNotBeNone() |
JitNode |
node() |
long |
offset() |
Graph |
owningGraph()
\warning NEVER pass raw pointer of smart pointer managed Graph to Python.
|
void |
replaceAllUsesAfterNodeWith(JitNode node,
Value newValue) |
void |
replaceAllUsesDominatedByNodeWith(JitNode node,
Value newValue) |
void |
replaceAllUsesWith(Value newValue) |
void |
replaceFirstUseWith(Value newValue) |
boolean |
requires_grad() |
Value |
setDebugName(BytePointer name) |
Value |
setDebugName(String name) |
void |
setOffset(long offset) |
Value |
setType(Type.TypePtr type) |
Type.TypePtr |
type() |
long |
unique() |
Use |
uses() |
ValueWrap |
wrap() |
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, zeropublic Value(Pointer p)
Pointer(Pointer).public Value setType(@ByVal Type.TypePtr type)
public void inferTypeFrom(@Cast(value="const c10::intrusive_ptr<c10::ivalue::Object>*") @ByRef Pointer output)
@Const @ByRef public Type.TypePtr type()
public Value setDebugName(@StdString BytePointer name)
public Value setDebugName(@StdString String name)
@StdString public BytePointer debugName()
@StdString public BytePointer debugNameBase()
public JitNode node()
public Graph owningGraph()
@StdVector public Use uses()
public void replaceFirstUseWith(Value newValue)
public void replaceAllUsesWith(Value newValue)
public void replaceAllUsesAfterNodeWith(@Const JitNode node, Value newValue)
public void replaceAllUsesDominatedByNodeWith(@Const JitNode node, Value newValue)
@SharedPtr public ValueWrap wrap()
Copyright © 2024. All rights reserved.