docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor OneHot

    OneHot(string, string, string, string, int)

    Initializes and returns an instance of OneHot layer with a float value.

    Declaration
    public OneHot(string name, string indices, string depth, string values, int axis)
    Parameters
    Type Name Description
    string name

    The name to use for the output tensor of the layer.

    string indices

    The name to use for the indices tensor of the layer.

    string depth

    The name to use for the scalar depth tensor of the layer.

    string values

    The name to use for the two-element off/on values tensor of the layer.

    int axis

    The axis along which the layer adds the one-hot representation.

    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)