Struct OperatorNode
Represents an ONNX operator for custom import.
Syntax
public struct OperatorNode
Properties
The inputs of the ONNX operator in order, as a string array.
Declaration
public readonly string[] Inputs { get; }
Property Value
Name
The name of the ONNX operator.
Declaration
public readonly string Name { get; }
Property Value
Outputs
The outputs of the ONNX operator in order, as a string array.
Declaration
public readonly string[] Outputs { get; }
Property Value
Methods
GetFloatArrayAttribute(String)
Return a list of float attributes called name
, as an array of floats.
Declaration
public float[] GetFloatArrayAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetFloatAttribute(String)
Returns the float attribute called name
.
Declaration
public float GetFloatAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetIntArrayAttribute(String)
Return a list of int attributes called name
, as an array of ints.
Declaration
public int[] GetIntArrayAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetIntAttribute(String)
Returns the int attribute called name
.
Declaration
public int GetIntAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetStringArrayAttribute(String)
Return a list of string attributes called name
, as an array of strings.
Declaration
public string[] GetStringArrayAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetStringAttribute(String)
Returns the string attribute called name
.
Declaration
public string GetStringAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasAttribute(String)
Whether the ONNX operator has an attribute called name
.
Declaration
public bool HasAttribute(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns