@Namespace(value="onnx") @NoOffset @Properties(inherit=onnx.class) public class OpSchema extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
OpSchema.Attribute |
static class |
OpSchema.FormalParameter |
static class |
OpSchema.TypeConstraintParam |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMON
enum class onnx::OpSchema::SupportType
|
static byte |
Differentiable
enum onnx::OpSchema::DifferentiationCategory
|
static byte |
EXPERIMENTAL
enum class onnx::OpSchema::SupportType
|
static int |
kUninitializedSinceVersion |
static byte |
NonDifferentiable
enum onnx::OpSchema::DifferentiationCategory
|
static byte |
Optional
enum onnx::OpSchema::FormalParameterOption
|
static byte |
Single
enum onnx::OpSchema::FormalParameterOption
|
static byte |
Unknown
enum onnx::OpSchema::DifferentiationCategory
|
static byte |
Variadic
enum onnx::OpSchema::FormalParameterOption
|
| Constructor and Description |
|---|
OpSchema() |
OpSchema(BytePointer name,
BytePointer file,
int line) |
OpSchema(long size)
Native array allocator.
|
OpSchema(Pointer p)
Pointer cast constructor.
|
OpSchema(String name,
String file,
int line) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic static final int kUninitializedSinceVersion
public static final byte Single
public static final byte Optional
public static final byte Variadic
public static final byte Unknown
public static final byte Differentiable
public static final byte NonDifferentiable
public static final byte COMMON
public static final byte EXPERIMENTAL
public OpSchema(Pointer p)
Pointer(Pointer).public OpSchema(long size)
Pointer.position(long).public OpSchema()
public OpSchema(@StdString BytePointer name, @StdString BytePointer file, int line)
public OpSchema(@StdString String name, @StdString String file, int line)
public OpSchema getPointer(long i)
getPointer in class Pointer@MemberGetter public static int kUninitializedSinceVersion()
@StdString public BytePointer file()
public int line()
@Cast(value="onnx::OpSchema::SupportType") public byte support_level()
@Cast(value="const char*") public BytePointer doc()
public void CheckInputOutputType(@ByRef InferenceContext arg0)
public void Verify(@Const @ByRef NodeProto node)
@ByRef @Function public OpSchema SinceVersion(@Cast(value="onnx::OperatorSetVersion") int n)
@ByRef public OpSchema Deprecate()
@ByRef public OpSchema NumInputs(@ByVal IntSet allowed_input_nums)
@ByRef public OpSchema NumOutputs(@ByVal IntSet allowed_output_nums)
@ByRef public OpSchema TypeAndShapeInferenceFunction(@ByVal onnx.InferenceFunction inferenceFunction)
@ByRef public OpSchema PartialDataPropagationFunction(@ByVal onnx.DataPropagationFunction dataProgationFunction)
@ByRef public OpSchema SetSupportLevel(@Cast(value="onnx::OpSchema::SupportType") byte supportType)
@ByRef public OpSchema SetDoc(@Cast(value="const char*") BytePointer doc)
@ByRef public OpSchema SetName(@Cast(value="const char*") BytePointer name)
@ByRef public OpSchema SetLocation(@Cast(value="const char*") BytePointer file, int line)
@ByRef public OpSchema SetDomain(@Cast(value="const char*") BytePointer domain)
@ByRef public OpSchema Attr(@ByVal OpSchema.Attribute attr)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Cast(value="const int64_t") long defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Cast(value="const int64_t") long defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef LongVector defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef LongVector defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, float defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, float defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef FloatVector defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef FloatVector defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @StdString BytePointer defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @StdString String defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef StringVector defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef StringVector defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef TensorProto defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef TensorProto defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef GraphProto defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef GraphProto defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef TypeProto defaultValue)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Const @ByRef TypeProto defaultValue)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Cast(value="bool") boolean required)
@ByRef public OpSchema Attr(@StdString BytePointer name, @StdString BytePointer description, @Cast(value="onnx::AttributeProto::AttributeType") int type)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type, @Cast(value="bool") boolean required)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @Cast(value="onnx::AttributeProto::AttributeType") int type)
@ByRef public OpSchema Input(int n, @ByVal OpSchema.FormalParameter formal_parameter)
@ByRef public OpSchema Input(int n, @StdString BytePointer name, @StdString BytePointer description, @StdString BytePointer type_str, @Cast(value="onnx::OpSchema::FormalParameterOption") byte param_option, @Cast(value="bool") boolean is_homogeneous, int min_arity, @Cast(value="onnx::OpSchema::DifferentiationCategory") byte differentiation_category)
@ByRef public OpSchema Input(int n, @StdString BytePointer name, @StdString BytePointer description, @StdString BytePointer type_str)
@ByRef public OpSchema Input(int n, @StdString String name, @StdString String description, @StdString String type_str, @Cast(value="onnx::OpSchema::FormalParameterOption") byte param_option, @Cast(value="bool") boolean is_homogeneous, int min_arity, @Cast(value="onnx::OpSchema::DifferentiationCategory") byte differentiation_category)
@ByRef public OpSchema Input(int n, @StdString String name, @StdString String description, @StdString String type_str)
@ByRef public OpSchema Output(int n, @ByVal OpSchema.FormalParameter formal_parameter)
@ByRef public OpSchema Output(int n, @StdString BytePointer name, @StdString BytePointer description, @StdString BytePointer type_str, @Cast(value="onnx::OpSchema::FormalParameterOption") byte param_option, @Cast(value="bool") boolean is_homogeneous, int min_arity, @Cast(value="onnx::OpSchema::DifferentiationCategory") byte differentiation_category)
@ByRef public OpSchema Output(int n, @StdString BytePointer name, @StdString BytePointer description, @StdString BytePointer type_str)
@ByRef public OpSchema Output(int n, @StdString String name, @StdString String description, @StdString String type_str, @Cast(value="onnx::OpSchema::FormalParameterOption") byte param_option, @Cast(value="bool") boolean is_homogeneous, int min_arity, @Cast(value="onnx::OpSchema::DifferentiationCategory") byte differentiation_category)
@ByRef public OpSchema Output(int n, @StdString String name, @StdString String description, @StdString String type_str)
@ByRef public OpSchema TypeConstraint(@StdString BytePointer type_str, @ByVal StringVector constraints, @StdString BytePointer description)
@ByRef public OpSchema TypeConstraint(@StdString String type_str, @ByVal StringVector constraints, @StdString String description)
@Const @ByRef public static StringVector numeric_types_for_math_reduction_ir9()
@Const @ByRef public static StringVector numeric_types_for_math_reduction_ir4()
@Const @ByRef public static StringVector numeric_types_for_math_reduction_with_bfloat()
@Const @ByRef public static StringVector numeric_types_for_math_reduction()
@Const @ByRef public static StringVector all_numeric_types_ir9()
@Const @ByRef public static StringVector all_numeric_types_ir4()
@Const @ByRef public static StringVector all_numeric_types_with_bfloat()
@Const @ByRef public static StringVector all_numeric_types()
@Const @ByRef public static StringVector all_numeric_sequence_types()
@Const @ByRef public static StringVector all_tensor_types()
@Const @ByRef public static StringVector all_tensor_types_ir4()
@Const @ByRef public static StringVector all_tensor_types_with_bfloat()
@Const @ByRef public static StringVector all_tensor_types_ir9()
@Const @ByRef public static StringVector all_tensor_sequence_types()
@Const @ByRef public static StringVector all_tensor_sequence_types_ir4()
@Const @ByRef public static StringVector all_tensor_sequence_types_with_bfloat()
@Const @ByRef public static StringVector all_tensor_sequence_types_ir9()
@Const @ByRef public static StringVector all_optional_types()
@Const @ByRef public static StringVector all_optional_types_ir4()
@Const @ByRef public static StringVector all_optional_types_with_bfloat()
@Const @ByRef public static StringVector all_optional_types_ir9()
@ByRef public OpSchema FillUsing(@Const @ByRef onnx.VoidOpSchemaFn populator)
@StdString public BytePointer domain()
@Const @ByRef public StringAttributeMap attributes()
@Const @ByRef public FormalParameterVector inputs()
@Const @ByRef public FormalParameterVector outputs()
@Const @ByRef public TypeConstraintParamVector typeConstraintParams()
@Cast(value="const onnx::TypeConstraintMap*") @ByRef public SizeTStringMap typeConstraintMap()
@StdString public BytePointer Name()
public int since_version()
public int min_input()
public int max_input()
public int min_output()
public int max_output()
@Cast(value="bool") public boolean has_type_and_shape_inference_function()
@StdVector public IntPointer function_opset_versions()
@ByRef public OpSchema FunctionBody(@StdVector NodeProto func_nodes, int opset_version)
@ByRef public OpSchema FunctionBody(@StdVector NodeProto func_nodes)
@ByRef public OpSchema FunctionBody(@StdVector NodeProto func_nodes, @StdVector OperatorSetIdProto opsets, int opset_version)
@ByRef public OpSchema FunctionBody(@StdVector NodeProto func_nodes, @StdVector OperatorSetIdProto opsets)
@ByRef public OpSchema FunctionBody(@Cast(value="const char*") BytePointer func_body, int opset_version)
@ByRef public OpSchema FunctionBody(@Cast(value="const char*") BytePointer func_body)
@Const public FunctionProto GetFunction(int requested_opset_version, @Cast(value="bool") boolean validate)
@Const public FunctionProto GetFunction()
@StdVector public IntPointer context_dependent_function_opset_versions()
@Cast(value="bool") public boolean HasContextDependentFunctionWithOpsetVersion(int opset_version)
@Cast(value="bool") public boolean BuildContextDependentFunction(@Const @ByRef FunctionBodyBuildContext ctx, @ByRef FunctionProto function_proto, int requested_opset_version)
@Cast(value="bool") public boolean BuildContextDependentFunction(@Const @ByRef FunctionBodyBuildContext ctx, @ByRef FunctionProto function_proto)
public void Finalize()
public void BuildFunction(@ByRef FunctionProto function_body)
Copyright © 2023. All rights reserved.