docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SymbolicTensorDim

    Represents a single dimension of a SymbolicTensorShape.

    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Sentis
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct SymbolicTensorDim

    Constructors

    Name Description
    SymbolicTensorDim(char)

    Initializes and returns an instance of SymbolicTensorDim of dynamic type, with a character value. The character value maps to a string in the Model class.

    SymbolicTensorDim(int)

    Initializes and returns an instance of SymbolicTensorDim of fixed type, with an integer value.

    Properties

    Name Description
    isParam

    Whether the dimension is dynamic. If the value is true, you can use .param to return the value as a character.

    isValue

    Whether the dimension is fixed. If the value is true, you can use .value to return the value.

    param

    The value of the dimension. You can only call this method if .isParam is true.

    value

    The value of the dimension. You can only call this method if .isValue is true.

    Methods

    Name Description
    Equals(object)

    Determines whether the specified object is equal to the current SymbolicTensorDim.

    EqualsParam(SymbolicTensorDim)

    Whether the current 'SymbolicTensorDim' is 'DimType.Param' and is equal to the specified dim.

    EqualsValue(SymbolicTensorDim)

    Whether the current 'SymbolicTensorDim' is 'DimType.Value' and is equal to the specified dim.

    GCD(SymbolicTensorDim, SymbolicTensorDim)

    Calculates the greatest common divisor of two SymbolicTensorDim objects.

    GetHashCode()

    Serves as the default hash function.

    ToString()

    Returns a string that represents the SymbolicTensorDim.

    Operators

    Name Description
    operator +(int, SymbolicTensorDim)

    Adds a SymbolicTensorDim to an int.

    operator +(SymbolicTensorDim, int)

    Adds an int to a SymbolicTensorDim.

    operator +(SymbolicTensorDim, SymbolicTensorDim)

    Adds two SymbolicTensorDim objects.

    operator /(int, SymbolicTensorDim)

    Divides an int by a SymbolicTensorDim a whole number of times. The method throws an error if the result has a remainder.

    operator /(SymbolicTensorDim, int)

    Divides a SymbolicTensorDim by an int a whole number of times. The method throws an error if the result has a remainder.

    operator /(SymbolicTensorDim, SymbolicTensorDim)

    Divides two SymbolicTensorDim dimensions a whole number of times. The method throws an error if the result has a remainder.

    operator ==(int, SymbolicTensorDim)

    Determines whether a 'SymbolicTensorDim' is equal to a value.

    operator ==(SymbolicTensorDim, int)

    Determines whether a 'SymbolicTensorDim' is equal to a value.

    operator ==(SymbolicTensorDim, SymbolicTensorDim)

    Determines whether two 'SymbolicTensorDim' objects are equal.

    operator >(SymbolicTensorDim, int)

    Whether a SymbolicTensorDim is known to be greater than than a given integer value.

    operator >=(SymbolicTensorDim, int)

    Whether a SymbolicTensorDim is known to be greater than or equal to than a given integer value.

    operator !=(int, SymbolicTensorDim)

    Determines whether a 'SymbolicTensorDim' is not equal to a value.

    operator !=(SymbolicTensorDim, int)

    Determines whether a 'SymbolicTensorDim' is not equal to a value.

    operator !=(SymbolicTensorDim, SymbolicTensorDim)

    Determines whether two 'SymbolicTensorDim' objects are not equal.

    operator <(SymbolicTensorDim, int)

    Whether a SymbolicTensorDim is known to be less than a given integer value.

    operator <=(SymbolicTensorDim, int)

    Whether a SymbolicTensorDim is known to be less than or equal to than a given integer value.

    operator *(int, SymbolicTensorDim)

    Multiplies an int by a SymbolicTensorDim.

    operator *(SymbolicTensorDim, int)

    Multiplies a SymbolicTensorDim by an int.

    operator *(SymbolicTensorDim, SymbolicTensorDim)

    Multiplies two SymbolicTensorDim dimensions.

    operator -(int, SymbolicTensorDim)

    Subtracts a SymbolicTensorDim from an int.

    operator -(SymbolicTensorDim, int)

    Subtracts an int from a SymbolicTensorDim.

    operator -(SymbolicTensorDim, SymbolicTensorDim)

    Subtracts a SymbolicTensorDim from another SymbolicTensorDim.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)