@Name(value="torch::jit::Node") @NoOffset @Properties(inherit=torch.class) public class JitNode extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
JitNode(Pointer p)
Pointer cast constructor.
|
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 JitNode(Pointer p)
Pointer(Pointer)
.public JitNode next_in_graph(int i)
@MemberGetter @Cast(value="torch::jit::Node**") public PointerPointer next_in_graph()
@SharedPtr public JitNodeWrap wrap()
@Const @ByVal public StringOptional getHistoricSchemaName()
public void setHistoricSchemaName(@StdString BytePointer name)
public void setHistoricSchemaName(@StdString String name)
public JitNode setSourceRange(@ByVal SourceRange r)
@ByVal public SourceRange sourceRange()
public Graph owningGraph()
public Block owningBlock()
@StdString public BytePointer scopeName()
@ByVal @Cast(value="c10::optional<torch::jit::InlinedCallStackPtr>*") public InlinedCallStackOptional callstack()
public void setCallStack(@ByVal @Cast(value="torch::jit::InlinedCallStackPtr*") Pointer cs)
@ByVal public ValueArrayRef inputs()
@ByVal public ValueArrayRef outputs()
public void replaceAllUsesWith(JitNode n)
public Value input()
public Value output()
@Cast(value="bool") public boolean hasNamedInput(@StdString BytePointer unqualName)
@Cast(value="bool") public boolean hasNamedInput(@StdString String unqualName)
public Value namedInput(@StdString BytePointer unqualName)
public Value namedInput(@StdString String unqualName)
@ByVal public IValueOptional get(@ByVal Symbol name)
public Value addOutput()
public Block addBlock()
@ByVal public BlockArrayRef blocks()
public void moveAfter(JitNode n)
public void moveBefore(JitNode n)
public void removeAllInputs()
public void removeAllOutputs()
public void permuteInputs(@Cast(value="const std::vector<size_t>*") @ByRef SizeTVector new_inputs)
public void permuteOutputs(@Cast(value="const std::vector<size_t>*") @ByRef SizeTVector new_inputs)
@ByVal public graph_node_list_iterator iterator()
@ByVal public graph_node_list_iterator reverseIterator()
public void destroy()
@Cast(value="bool") public boolean matches(@Const @ByRef FunctionSchema schema)
@Cast(value="bool") public boolean matches(@Cast(value="const char*") BytePointer signature_literal, @ByVal(nullValue="at::ArrayRef<c10::Symbol>{}") SymbolArrayRef const_inputs)
@Cast(value="bool") public boolean matches(@Cast(value="const char*") BytePointer signature_literal)
@Cast(value="bool") public boolean matches(String signature_literal, @ByVal(nullValue="at::ArrayRef<c10::Symbol>{}") SymbolVector const_inputs)
@Cast(value="bool") public boolean isMemberOf(@Const @ByRef OperatorSet os)
@Const @ByRef public FunctionSchema schema()
@Const public FunctionSchema maybeSchema()
public void dump()
@Cast(value="std::ostream*") @ByRef public Pointer print(@Cast(value="std::ostream*") @ByRef Pointer out, @Cast(value="size_t") long level, JitNodeVector groups, @Cast(value="bool") boolean print_source_locations, @Cast(value="bool") boolean print_attributes, @Cast(value="bool") boolean print_scopes, @Cast(value="bool") boolean print_body)
@Cast(value="std::ostream*") @ByRef public Pointer print(@Cast(value="std::ostream*") @ByRef Pointer out, @Cast(value="size_t") long level, JitNodeVector groups)
@Cast(value="bool") public boolean hasAttributeS(@StdString BytePointer name)
@Cast(value="bool") public boolean hasAttributeS(@StdString String name)
public torch.JitAttributeKind kindOf(@ByVal Symbol name)
public torch.JitAttributeKind kindOfS(@StdString BytePointer name)
public torch.JitAttributeKind kindOfS(@StdString String name)
public JitNode removeAttributeS(@StdString BytePointer name)
public JitNode removeAttributeS(@StdString String name)
@ByVal public SymbolVector attributeNames()
@ByVal public BytePointerVector attributeNamesS()
public JitNode f_(@ByVal Symbol name, @Cast(value="torch::jit::FloatAttr::ConstructorType") double v)
public JitNode c_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::ComplexAttr::ConstructorType*") DoublePointer v)
@Cast(value="const torch::jit::ComplexAttr::ValueType*") @ByRef public DoublePointer c(@ByVal Symbol name)
public JitNode fs_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::FloatsAttr::ConstructorType*") DoubleVector v)
@Cast(value="const torch::jit::FloatsAttr::ValueType*") @ByRef public DoubleVector fs(@ByVal Symbol name)
public JitNode cs_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::ComplexValsAttr::ConstructorType*") Pointer v)
@Cast(value="const torch::jit::ComplexValsAttr::ValueType*") @ByRef public Pointer cs(@ByVal Symbol name)
public JitNode s_(@ByVal Symbol name, @StdString @ByVal BytePointer v)
@Const @StdString @ByRef public BytePointer s(@ByVal Symbol name)
public JitNode ss_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::StringsAttr::ConstructorType*") StringVector v)
@Cast(value="const torch::jit::StringsAttr::ValueType*") @ByRef public StringVector ss(@ByVal Symbol name)
public JitNode i_(@ByVal Symbol name, @Cast(value="torch::jit::IntAttr::ConstructorType") long v)
public JitNode is_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::IntsAttr::ConstructorType*") LongVector v)
@Cast(value="const torch::jit::IntsAttr::ValueType*") @ByRef public LongVector is(@ByVal Symbol name)
public JitNode gs_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::GraphsAttr::ConstructorType*") GraphVector v)
@Cast(value="const torch::jit::GraphsAttr::ValueType*") @ByRef public GraphVector gs(@ByVal Symbol name)
public JitNode ty_(@ByVal Symbol name, @ByVal Type.TypePtr v)
@Const @ByRef public Type.TypePtr ty(@ByVal Symbol name)
public JitNode tys_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::TypesAttr::ConstructorType*") TypeVector v)
@Cast(value="const torch::jit::TypesAttr::ValueType*") @ByRef public TypeVector tys(@ByVal Symbol name)
public JitNode ival_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::IValueAttr::ConstructorType*") IValue v)
@Cast(value="const torch::jit::IValueAttr::ValueType*") @ByRef public IValue ival(@ByVal Symbol name)
public JitNode t_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::TensorAttr::ConstructorType*") Tensor v)
@Cast(value="const torch::jit::TensorAttr::ValueType*") @ByRef public Tensor t(@ByVal Symbol name)
public JitNode ts_(@ByVal Symbol name, @ByVal @Cast(value="torch::jit::TensorsAttr::ConstructorType*") TensorVector v)
@Cast(value="const torch::jit::TensorsAttr::ValueType*") @ByRef public TensorVector ts(@ByVal Symbol name)
Copyright © 2024. All rights reserved.