@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) |
Modifier and Type | Method and Description |
---|---|
static StringVector |
all_float_types_ir4() |
static StringVector |
all_float_types_ir9() |
static StringVector |
all_numeric_sequence_types() |
static StringVector |
all_numeric_types_ir4() |
static StringVector |
all_numeric_types_ir9() |
static StringVector |
all_numeric_types() |
static StringVector |
all_optional_types_ir4() |
static StringVector |
all_optional_types_ir9() |
static StringVector |
all_optional_types() |
static StringVector |
all_tensor_sequence_types_ir4() |
static StringVector |
all_tensor_sequence_types_ir9() |
static StringVector |
all_tensor_sequence_types() |
static StringVector |
all_tensor_types_ir4() |
static StringVector |
all_tensor_types_ir9() |
static StringVector |
all_tensor_types() |
OpSchema |
AllowUncheckedAttributes() |
OpSchema |
Attr(BytePointer name,
BytePointer description,
BytePointer conditionExplanation,
int attr_type) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
boolean required) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
BytePointer defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
float defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
FloatVector defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
GraphProto defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
long defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
LongVector defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
StringVector defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
TensorProto defaultValue) |
OpSchema |
Attr(BytePointer name,
BytePointer description,
int type,
TypeProto defaultValue) |
OpSchema |
Attr(OpSchema.Attribute attr) |
OpSchema |
Attr(String name,
String description,
int type) |
OpSchema |
Attr(String name,
String description,
int type,
boolean required) |
OpSchema |
Attr(String name,
String description,
int type,
float defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
FloatVector defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
GraphProto defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
long defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
LongVector defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
String defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
StringVector defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
TensorProto defaultValue) |
OpSchema |
Attr(String name,
String description,
int type,
TypeProto defaultValue) |
OpSchema |
Attr(String name,
String description,
String conditionExplanation,
int attr_type) |
StringAttributeMap |
attributes() |
boolean |
BuildContextDependentFunction(FunctionBodyBuildContext ctx,
FunctionProto function_proto) |
boolean |
BuildContextDependentFunction(FunctionBodyBuildContext ctx,
FunctionProto function_proto,
int requested_opset_version) |
void |
BuildFunction(FunctionProto function_body) |
void |
CheckInputOutputType(InferenceContext arg0) |
IntPointer |
context_dependent_function_opset_versions() |
OpSchema |
Deprecate()
Marks this op as deprecated as of it's since_version.
|
boolean |
deprecated() |
boolean |
Deprecated() |
BytePointer |
doc()
\brief Returns the docstring of the op schema.
|
BytePointer |
domain() |
BytePointer |
file()
\brief Returns the file that the op schema is registered from.
|
void |
Finalize() |
IntPointer |
function_opset_versions() |
OpSchema |
FunctionBody(BytePointer func_body) |
OpSchema |
FunctionBody(BytePointer func_body,
int opset_version) |
OpSchema |
FunctionBody(NodeProto func_nodes) |
OpSchema |
FunctionBody(NodeProto func_nodes,
int opset_version) |
OpSchema |
FunctionBody(NodeProto func_nodes,
OperatorSetIdProto opsets) |
OpSchema |
FunctionBody(NodeProto func_nodes,
OperatorSetIdProto opsets,
int opset_version) |
OpSchema |
FunctionBody(String func_body) |
OpSchema |
FunctionBody(String func_body,
int opset_version) |
FunctionProto |
GetFunction() |
FunctionProto |
GetFunction(int requested_opset_version,
boolean validate) |
OpSchema |
getPointer(long i) |
boolean |
has_data_propagation_function() |
boolean |
has_type_and_shape_inference_function() |
boolean |
HasContextDependentFunction() |
boolean |
HasContextDependentFunctionWithOpsetVersion(int opset_version) |
boolean |
HasFunction() |
OpSchema |
Input(int n,
BytePointer name,
BytePointer description,
BytePointer type_str) |
OpSchema |
Input(int n,
BytePointer name,
BytePointer description,
BytePointer type_str,
byte param_option,
boolean is_homogeneous,
int min_arity,
byte differentiation_category) |
OpSchema |
Input(int n,
OpSchema.FormalParameter formal_parameter) |
OpSchema |
Input(int n,
String name,
String description,
String type_str) |
OpSchema |
Input(int n,
String name,
String description,
String type_str,
byte param_option,
boolean is_homogeneous,
int min_arity,
byte differentiation_category) |
FormalParameterVector |
inputs() |
static int |
kUninitializedSinceVersion() |
int |
line()
\brief Returns the line in file that the op schema is registered from.
|
int |
max_input() |
int |
max_output() |
int |
min_input() |
int |
min_output() |
BytePointer |
Name() |
static StringVector |
numeric_types_for_math_reduction_ir4() |
static StringVector |
numeric_types_for_math_reduction_ir9() |
static StringVector |
numeric_types_for_math_reduction() |
OpSchema |
NumInputs(IntSet allowed_input_nums)
\brief Input could be one of the values specified in allowed_input_nums.
|
OpSchema |
NumOutputs(IntSet allowed_output_nums)
\brief Output could be one of the values specified in allowed_output_nums.
|
OpSchema |
Output(int n,
BytePointer name,
BytePointer description,
BytePointer type_str) |
OpSchema |
Output(int n,
BytePointer name,
BytePointer description,
BytePointer type_str,
byte param_option,
boolean is_homogeneous,
int min_arity,
byte differentiation_category) |
OpSchema |
Output(int n,
OpSchema.FormalParameter formal_parameter) |
OpSchema |
Output(int n,
String name,
String description,
String type_str) |
OpSchema |
Output(int n,
String name,
String description,
String type_str,
byte param_option,
boolean is_homogeneous,
int min_arity,
byte differentiation_category) |
FormalParameterVector |
outputs() |
OpSchema |
PartialDataPropagationFunction(onnx.DataPropagationFunction dataProgationFunction) |
OpSchema |
position(long position) |
OpSchema |
SetDoc(BytePointer doc) |
OpSchema |
SetDoc(String doc) |
OpSchema |
SetDomain(BytePointer domain) |
OpSchema |
SetDomain(String domain) |
OpSchema |
SetLocation(BytePointer file,
int line) |
OpSchema |
SetLocation(String file,
int line) |
OpSchema |
SetName(BytePointer name) |
OpSchema |
SetName(String name) |
OpSchema |
SetSupportLevel(byte supportType) |
int |
since_version() |
int |
SinceVersion() |
OpSchema |
SinceVersion(int n)
The earliest operator set version which this operator was
present in.
|
byte |
support_level()
\brief Returns the support level of the op schema.
|
OpSchema |
TypeAndShapeInferenceFunction(onnx.InferenceFunction inferenceFunction) |
OpSchema |
TypeConstraint(BytePointer type_str,
StringVector constraints,
BytePointer description) |
OpSchema |
TypeConstraint(String type_str,
StringVector constraints,
String description) |
SizeTStringMap |
typeConstraintMap() |
TypeConstraintParamVector |
typeConstraintParams() |
void |
Verify(NodeProto node)
\brief Verifies if a NodeProto matches the pattern specified in
the schema.
|
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, zero
public 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, @StdString BytePointer conditionExplanation, @Cast(value="onnx::AttributeProto::AttributeType") int attr_type)
@ByRef public OpSchema Attr(@StdString String name, @StdString String description, @StdString String conditionExplanation, @Cast(value="onnx::AttributeProto::AttributeType") int attr_type)
@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()
@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()
@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_float_types_ir4()
@Const @ByRef public static StringVector all_float_types_ir9()
@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_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_ir9()
@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 © 2024. All rights reserved.