@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class ArgumentSpec extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ArgumentSpec(long num_flat_tensor_inputs,
long num_flat_optional_inputs) |
ArgumentSpec(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
_hashCode() |
void |
addOptional(IValue input) |
void |
addTensor(IValue input,
boolean with_grad) |
void |
combineHash(ArgumentInfo arg) |
boolean |
equals(ArgumentSpec spec) |
boolean |
isPresent(long i) |
boolean |
notEquals(ArgumentSpec spec) |
long |
numOptionals() |
long |
numTensors() |
ArgumentInfo |
tensorAt(long i) |
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 ArgumentSpec(Pointer p)
Pointer(Pointer)
.public void combineHash(@Const @ByRef ArgumentInfo arg)
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef ArgumentSpec spec)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef ArgumentSpec spec)
@Const @ByRef public ArgumentInfo tensorAt(@Cast(value="size_t") long i)
Copyright © 2024. All rights reserved.