Class Compress
Represents a Compress
logical layer that selects slices of an input tensor along a given axis according to a condition tensor.
If you don't provide an axis, the layer flattens the input tensor.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class Compress : Layer
Constructors
Name | Description |
---|---|
Compress(string, string, string) | Initializes and returns an instance of |
Compress(string, string, string, int) | Initializes and returns an instance of |
Fields
Name | Description |
---|---|
axis | The axis along which to apply the Compress when |
hasAxis | Whether to perform the |
Methods
Name | Description |
---|---|
Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the If the layer has more than one output, output tensors are saved to variables. |
ToString() | Returns a string that represents the |