@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 |
EXPERIMENTAL
enum class onnx::OpSchema::SupportType
|
static byte |
Optional
enum onnx::OpSchema::FormalParameterOption
|
static byte |
Single
enum onnx::OpSchema::FormalParameterOption
|
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_numeric_sequence_types() |
static StringVector |
all_numeric_types() |
static StringVector |
all_tensor_sequence_types() |
static StringVector |
all_tensor_types() |
OpSchema |
AllowUncheckedAttributes() |
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(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) |
StringAttributeMap |
attributes() |
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.
|
OpSchema |
FillUsing(onnx.VoidOpSchemaFn populator) |
void |
Finalize() |
OpSchema |
FunctionBody(NodeProto func_nodes) |
FunctionProto |
GetFunction() |
boolean |
has_type_and_shape_inference_function() |
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) |
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) |
FormalParameterVector |
inputs() |
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() |
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) |
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) |
FormalParameterVector |
outputs() |
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) |
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, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final byte Single
public static final byte Optional
public static final byte Variadic
public static final byte COMMON
public static final byte EXPERIMENTAL
public OpSchema(Pointer p)
Pointer.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)
@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 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 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, @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, @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)
@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)
@ByRef public OpSchema Input(int n, @StdString String name, @StdString String description, @StdString String type_str)
@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)
@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)
@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()
@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_sequence_types()
@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()
@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()
@ByRef public OpSchema FunctionBody(@StdVector NodeProto func_nodes)
@Const public FunctionProto GetFunction()
public void Finalize()
Copyright © 2020. All rights reserved.