@Namespace(value="torch::autograd") @NoOffset @Properties(inherit=torch.class) public class Edge extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Edge() |
Edge(long size)
Native array allocator.
|
Edge(Node function_,
int input_nr_) |
Edge(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Edge other) |
Node |
function()
The function this
Edge points to. |
Edge |
function(Node setter) |
Edge |
getPointer(long i) |
int |
input_nr()
The identifier of a particular input to the function.
|
Edge |
input_nr(int setter) |
boolean |
is_valid()
Convenience method to test if an edge is valid.
|
boolean |
notEquals(Edge other) |
Edge |
position(long position) |
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 Edge(Pointer p)
Pointer(Pointer)
.public Edge(long size)
Pointer.position(long)
.public Edge()
public Edge(@SharedPtr Node function_, @Cast(value="uint32_t") int input_nr_)
public Edge getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") @NoException(value=true) public boolean is_valid()
@Cast(value="bool") @Name(value="operator ==") @NoException(value=true) public boolean equals(@Const @ByRef Edge other)
@Cast(value="bool") @Name(value="operator !=") @NoException(value=true) public boolean notEquals(@Const @ByRef Edge other)
@SharedPtr public Node function()
Edge
points to.@Cast(value="uint32_t") public int input_nr()
public Edge input_nr(int setter)
Copyright © 2024. All rights reserved.