@Namespace(value="torch::jit") @Properties(inherit=torch.class) public class Function extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Function(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
IValue |
apply(IValueVector stack) |
IValue |
apply(IValueVector stack,
StringIValueMap kwargs) |
BytePointer |
doc_string() |
void |
ensure_defined() |
FunctionSchema |
getSchema() |
boolean |
isGraphFunction() |
BytePointer |
name() |
long |
num_inputs() |
Function |
put(Function arg0) |
QualifiedName |
qualname() |
void |
run(IValueVector stack) |
Future |
runAsync(IValueVector arg0) |
Future |
runAsync(IValueVector arg0,
Pointer taskLauncher) |
Function |
setSchema(FunctionSchema schema) |
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 Function(Pointer p)
Pointer(Pointer)
.@StringView public BytePointer doc_string()
public void run(@ByRef IValueVector stack)
@IntrusivePtr(value="c10::ivalue::Future") @Cast(value={"","c10::intrusive_ptr<c10::ivalue::Future>&"}) public Future runAsync(@ByRef IValueVector arg0, @ByVal(nullValue="torch::jit::TaskLauncher(at::launch)") @Cast(value="torch::jit::TaskLauncher*") Pointer taskLauncher)
@IntrusivePtr(value="c10::ivalue::Future") @Cast(value={"","c10::intrusive_ptr<c10::ivalue::Future>&"}) public Future runAsync(@ByRef IValueVector arg0)
@ByVal @Name(value="operator ()") public IValue apply(@ByVal IValueVector stack, @Cast(value="const torch::jit::Kwargs*") @ByRef(nullValue="torch::jit::Kwargs()") StringIValueMap kwargs)
@Const @ByRef public QualifiedName qualname()
@StdString public BytePointer name()
public void ensure_defined()
@Const @ByRef public FunctionSchema getSchema()
@ByRef public Function setSchema(@ByVal FunctionSchema schema)
Copyright © 2024. All rights reserved.