docs.unity3d.com
    Show / Hide Table of Contents

    Struct OperatorNode

    Represents an ONNX operator for custom import.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Sentis.ONNX
    Syntax
    public struct OperatorNode

    Properties

    Inputs

    The inputs of the ONNX operator in order, as a string array.

    Declaration
    public readonly string[] Inputs { get; }
    Property Value
    Type Description
    String[]

    Name

    The name of the ONNX operator.

    Declaration
    public readonly string Name { get; }
    Property Value
    Type Description
    String

    Outputs

    The outputs of the ONNX operator in order, as a string array.

    Declaration
    public readonly string[] Outputs { get; }
    Property Value
    Type Description
    String[]

    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
    Type Description
    Single[]

    GetFloatAttribute(String)

    Returns the float attribute called name.

    Declaration
    public float GetFloatAttribute(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Single

    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
    Type Description
    Int32[]

    GetIntAttribute(String)

    Returns the int attribute called name.

    Declaration
    public int GetIntAttribute(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Int32

    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
    Type Description
    String[]

    GetStringAttribute(String)

    Returns the string attribute called name.

    Declaration
    public string GetStringAttribute(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    String

    HasAttribute(String)

    Whether the ONNX operator has an attribute called name.

    Declaration
    public bool HasAttribute(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Boolean
    In This Article
    • Properties
      • Inputs
      • Name
      • Outputs
    • Methods
      • GetFloatArrayAttribute(String)
      • GetFloatAttribute(String)
      • GetIntArrayAttribute(String)
      • GetIntAttribute(String)
      • GetStringArrayAttribute(String)
      • GetStringAttribute(String)
      • HasAttribute(String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023