@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class CompilationUnit extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
CompilationUnit.FunctionType |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CompilationUnit() |
CompilationUnit(BytePointer source) |
CompilationUnit(CompilationUnit arg0) |
CompilationUnit(Pointer p)
Pointer cast constructor.
|
CompilationUnit(String source) |
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 CompilationUnit(Pointer p)
Pointer(Pointer)
.public CompilationUnit(@StdString BytePointer source)
public CompilationUnit(@StdString String source)
public CompilationUnit()
public CompilationUnit(@ByRef(value=true) CompilationUnit arg0)
@ByRef @Name(value="operator =") public CompilationUnit put(@ByRef(value=true) CompilationUnit arg0)
public Function find_function(@Const @ByRef QualifiedName name)
@ByRef public Function get_function(@Const @ByRef QualifiedName name)
@ByVal public FunctionVector define(@Const @ByRef QualifiedNameOptional prefix, @Const @ByRef PropertyVector properties, @Const @ByRef ResolverVector propResolvers, @Const @ByRef DefVector definitions, @Const @ByRef ResolverVector defResolvers, @Const Self self, @Cast(value="bool") boolean shouldMangle, @ByVal(nullValue="c10::optional<size_t>(c10::nullopt)") SizeTOptional operator_set_version)
@ByVal public FunctionVector define(@Const @ByRef QualifiedNameOptional prefix, @Const @ByRef PropertyVector properties, @Const @ByRef ResolverVector propResolvers, @Const @ByRef DefVector definitions, @Const @ByRef ResolverVector defResolvers, @Const Self self)
public void define_hooks(@Const @ByRef QualifiedNameOptional prefix, @Const @ByRef DefVector hookDefs, @Const @ByRef ResolverVector hookResolvers, @Const @ByRef DefVector preHookDefs, @Const @ByRef ResolverVector preHookResolvers, @Const Self self, @Cast(value="bool") boolean shouldMangle)
public void define_hooks(@Const @ByRef QualifiedNameOptional prefix, @Const @ByRef DefVector hookDefs, @Const @ByRef ResolverVector hookResolvers, @Const @ByRef DefVector preHookDefs, @Const @ByRef ResolverVector preHookResolvers, @Const Self self)
@ByVal public FunctionVector define(@Const @ByRef QualifiedNameOptional prefix, @StdString BytePointer source, @Const @SharedPtr(value="torch::jit::Resolver") @ByRef Resolver resolver, @Const Self self)
@ByVal public FunctionVector define(@Const @ByRef QualifiedNameOptional prefix, @StdString String source, @Const @SharedPtr(value="torch::jit::Resolver") @ByRef Resolver resolver, @Const Self self)
public void define_interface(@Const @ByRef QualifiedName qualifiedName, @Const @ByRef ClassDef classDef, @SharedPtr(value="torch::jit::Resolver") @ByVal Resolver rcb, @Cast(value="bool") boolean is_module)
public void define_interface(@Const @ByRef QualifiedName qualifiedName, @Const @ByRef ClassDef classDef, @SharedPtr(value="torch::jit::Resolver") @ByVal Resolver rcb)
public Function create_function(@ByVal QualifiedName name, @SharedPtr(value="torch::jit::Graph") @ByVal Graph graph, @Cast(value="bool") boolean shouldMangle)
public Function create_function(@ByVal QualifiedName name, @SharedPtr(value="torch::jit::Graph") @ByVal Graph graph)
@ByVal public FunctionVector get_functions()
public void drop_all_functions()
IValue output = module->run("relu_script", a, b);
To get a compile a module from a source string, see torch::jit::compilemethod_name
- The name of the method to runargs
- Arguments to be passed to the methodpublic void register_type(@SharedPtr NamedType namedType)
@SharedPtr(value="c10::ClassType") @ByVal public ClassType get_class(@Const @ByRef QualifiedName name)
@SharedPtr public InterfaceType get_interface(@Const @ByRef QualifiedName name)
@SharedPtr public TupleType get_named_tuple(@Const @ByRef QualifiedName name)
@SharedPtr public NamedType get_type(@Const @ByRef QualifiedName name)
public void unsafeRemoveMethod(@Const @ByRef QualifiedName method_name)
@ByVal public QualifiedName mangle(@Const @ByRef QualifiedName name)
Copyright © 2024. All rights reserved.