@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class GraphFunction extends Function
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
GraphFunction(Pointer p)
Pointer cast constructor.
|
GraphFunction(QualifiedName name,
Graph graph,
GraphFunctionCreator function_creator) |
GraphFunction(QualifiedName name,
Graph graph,
GraphFunctionCreator function_creator,
ExecutorExecutionModeOptional executor_execution_mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
check_single_output() |
void |
clear_optimized_graphs() |
void |
ensure_defined() |
GraphExecutor |
get_executor() |
GraphExecutorState |
getDebugState() |
FunctionSchema |
getSchema() |
Graph |
graph() |
boolean |
is_optimized() |
boolean |
isGraphFunction() |
long |
num_inputs() |
Graph |
optimized_graph() |
QualifiedName |
qualname() |
void |
run(IValueVector stack) |
FuturePtr |
runAsync(IValueVector stack) |
FuturePtr |
runAsync(IValueVector stack,
Pointer taskLauncher) |
Function |
setSchema(FunctionSchema schema) |
apply, apply, doc_string, nameaddress, 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 GraphFunction(Pointer p)
Pointer(Pointer).public GraphFunction(@ByVal QualifiedName name, @SharedPtr(value="torch::jit::Graph") @ByVal Graph graph, @ByVal GraphFunctionCreator function_creator, @ByVal(nullValue="c10::optional<torch::jit::ExecutorExecutionMode>(c10::nullopt)") ExecutorExecutionModeOptional executor_execution_mode)
public GraphFunction(@ByVal QualifiedName name, @SharedPtr(value="torch::jit::Graph") @ByVal Graph graph, @ByVal GraphFunctionCreator function_creator)
@Cast(value="bool") public boolean isGraphFunction()
isGraphFunction in class Functionpublic void run(@ByRef IValueVector stack)
@ByVal public FuturePtr runAsync(@ByRef IValueVector stack, @ByVal(nullValue="torch::jit::TaskLauncher(at::launch)") @Cast(value="torch::jit::TaskLauncher*") Pointer taskLauncher)
@ByVal public FuturePtr runAsync(@ByRef IValueVector stack)
@SharedPtr(value="torch::jit::Graph") @ByVal public Graph graph()
@SharedPtr(value="torch::jit::Graph") @ByVal public Graph optimized_graph()
@Const @ByRef public QualifiedName qualname()
public void ensure_defined()
ensure_defined in class Function@Cast(value="size_t") public long num_inputs()
num_inputs in class Function@ByRef public Function setSchema(@ByVal FunctionSchema schema)
@Const @ByRef public FunctionSchema getSchema()
@ByVal public GraphExecutorState getDebugState()
public void check_single_output()
@ByRef public GraphExecutor get_executor()
public void clear_optimized_graphs()
Copyright © 2024. All rights reserved.