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.  |