Constructor Compress
Compress(string, string, string)
Initializes and returns an instance of Compress
logical layer without an axis. The layer flattens the input tensor.
Declaration
public Compress(string name, string input, string condition)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to use for the output tensor of the layer. |
string | input | The name to use for the input tensor of the layer. |
string | condition | The name to use for the condition tensor of the layer. |
Compress(string, string, string, int)
Initializes and returns an instance of Compress
logical layer along an axis.
Declaration
public Compress(string name, string input, string condition, int axis)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to use for the output tensor of the layer. |
string | input | The name to use for the input tensor of the layer. |
string | condition | The name to use for the condition tensor of the layer. |
int | axis | The axis along which to apply the |