@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class Graph extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteraddress, 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, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Graph(@ByVal(nullValue="torch::jit::ScopePtr(c10::make_intrusive<torch::jit::Scope>())") @Cast(value="torch::jit::ScopePtr*") Pointer scope_root)
public Graph()
@ByVal public ValueArrayRef inputs()
@ByVal public ValueArrayRef outputs()
@ByVal public graph_node_list nodes()
public JitNode param_node()
public JitNode return_node()
@Const @ByRef public StringValueMap debugNames()
public void push_scope(@StdString BytePointer scope_name)
public void push_scope(@StdString String scope_name)
public void pop_scope()
public void set_op_version(@ByVal SizeTOptional version)
@ByVal public SizeTOptional get_op_version()
public void set_current_scope(@ByVal @Cast(value="torch::jit::ScopePtr*") Pointer scope)
public Value addInput(@StdString BytePointer name)
public Value addInput()
public Value addInput(@StdString String name)
public Value insertInput(@Cast(value="size_t") long i, @StdString BytePointer name)
public Value insertInput(@Cast(value="size_t") long i, @StdString String name)
public JitNode create(@ByVal @Cast(value="torch::jit::NodeKind*") Symbol kind, @Cast(value="size_t") long num_outputs)
public JitNode create(@ByVal @Cast(value="torch::jit::NodeKind*") Symbol kind, @ByVal ValueArrayRef inputs, @Cast(value="size_t") long num_outputs)
public JitNode create(@ByVal @Cast(value="torch::jit::NodeKind*") Symbol kind, @ByVal ValueArrayRef inputs)
public JitNode create(@ByVal @Cast(value="torch::jit::NodeKind*") Symbol kind, @ByVal ValueVector inputs, @Cast(value="size_t") long num_outputs)
public JitNode create(@ByVal @Cast(value="torch::jit::NodeKind*") Symbol kind, @ByVal ValueVector inputs)
public JitNode createNone()
public JitNode createAutogradZero()
public JitNode createUninitialized(@ByVal Type.TypePtr typ)
public JitNode createTuple(@ByVal ValueArrayRef values, @SharedPtr TupleType optional_named_tuple)
public JitNode createTuple(@ByVal ValueArrayRef values)
public JitNode createTuple(@ByVal ValueVector values, @SharedPtr TupleType optional_named_tuple)
public JitNode createTuple(@ByVal ValueVector values)
public JitNode createTupleIndex(Value tup, Value idx, @Const @ByRef Type.TypePtr output_type)
public JitNode createTupleSlice(Value tup, @Cast(value="int64_t") long beg, @Cast(value="int64_t") long step_size, @Cast(value="int64_t") long num_values)
public JitNode createList(@Const @ByRef Type.TypePtr contained_type, @ByVal ValueArrayRef values)
public JitNode createList(@Const @ByRef Type.TypePtr contained_type, @ByVal ValueVector values)
public JitNode createDict(@Const @ByRef Type.TypePtr key_type, @Const @ByRef Type.TypePtr value_type, @ByVal ValueArrayRef keys, @ByVal ValueArrayRef values)
public JitNode createDict(@Const @ByRef Type.TypePtr key_type, @Const @ByRef Type.TypePtr value_type, @ByVal ValueVector keys, @ByVal ValueVector values)
public JitNode createObject(@Const @SharedPtr(value="c10::ClassType") @ByRef ClassType type)
public JitNode createSetAttr(Value obj, @StdString BytePointer field, Value newValue)
public JitNode createSetAttr(Value obj, @StdString String field, Value newValue)
public JitNode createGetAttr(Value obj, @StdString BytePointer field)
public JitNode createGetAttr(Value obj, @StdString String field)
public Value insertGetAttr(Value obj, @StdString BytePointer field)
public Value insertGetAttr(Value obj, @StdString String field)
public JitNode createStore(@StdString BytePointer name, Value v)
public JitNode createStore(@StdString String name, Value v)
public JitNode createLoad(@StdString BytePointer name, @Const @ByRef Type.TypePtr type)
public JitNode createLoad(@StdString String name, @Const @ByRef Type.TypePtr type)
public JitNode createIsInstance(Value v, @ByVal TypeArrayRef types)
public JitNode createIsInstance(Value v, @ByVal TypeVector types)
public Value insertUncheckedCast(Value v, @ByVal Type.TypePtr type)
public Value insertToList(Value v, @ByVal Type.TypePtr type)
public Value insertFunctionCall(Function callee, @Const @ByRef MatchedSchema matched)
public Value insertMethodCall(@StdString BytePointer method_name, @Const @ByRef MatchedSchema matched)
public Value insertMethodCall(@StdString String method_name, @Const @ByRef MatchedSchema matched)
public JitNode createClone(JitNode n, @Const @ByRef ValueMapper value_map, @Cast(value="bool") boolean copy_blocks)
public JitNode createClone(JitNode n, @Const @ByRef ValueMapper value_map)
public Value insertConstant(@Const @ByRef IValue val, @ByVal(nullValue="c10::optional<torch::jit::SourceRange>(c10::nullopt)") SourceRangeOptional loc, @ByVal(nullValue="c10::optional<torch::jit::ScopePtr>(c10::nullopt)") @Cast(value="c10::optional<torch::jit::ScopePtr>*") ScopeOptional scope)
public Value insert(@ByVal Symbol opname, @ByVal NamedValueArrayRef args, @ByVal(nullValue="at::ArrayRef<torch::jit::NamedValue>{}") NamedValueArrayRef kwargs, @Const @ByRef(nullValue="c10::optional<torch::jit::SourceRange>{}") SourceRangeOptional range)
public Value insert(@ByVal Symbol opname, @ByVal NamedValueArrayRef args)
public void setInsertPoint(Block b)
public void setInsertPoint(JitNode n)
public JitNode insertPoint()
public Block block()
public void lint()
public void dump()
@StdString public String toString()
@Cast(value="std::ostream*") @ByRef public Pointer print(@Cast(value="std::ostream*") @ByRef Pointer out, @Cast(value="bool") boolean print_source_locations)
@Cast(value="std::ostream*") @ByRef public Pointer print(@Cast(value="std::ostream*") @ByRef Pointer out)
@SharedPtr(value="torch::jit::Graph") @ByVal public Graph copy()
@UniquePtr @ByVal public Graph copyUnique()
public void remapTypes(@Const @ByRef TypeMapper type_map)
Copyright © 2024. All rights reserved.