docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Conv

    Represents a Conv convolution layer, which applies a convolution filter to an input tensor.

    Inheritance
    object
    Layer
    FusedActivation
    Conv
    Inherited Members
    FusedActivation.fusedActivation
    Layer.inputs
    Layer.name
    Layer.outputs
    Layer.flags
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Sentis.Layers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class Conv : FusedActivation

    Constructors

    Name Description
    Conv(string, string, string, int, int[], int[], int[], AutoPad, int[], FusableActivation)

    Initializes and returns an instance of Conv convolution layer.

    Conv(string, string, string, string, int, int[], int[], int[], AutoPad, int[], FusableActivation)

    Initializes and returns an instance of Conv convolution layer.

    Fields

    Name Description
    autoPad

    The auto padding mode of the convolution as an AutoPad.

    dilations

    The dilation value of each spatial dimension of the filter.

    If this is null the layer uses a default of [1, 1, ..., 1].

    group

    The number of groups that input channels and output channels are divided into.

    kernelShape

    The shape of the kernel as an integer array.

    pads

    The lower and upper padding values for each spatial dimension of the filter, [pad_left, pad_right] for 1D, [pad_top, pad_bottom, pad_left, pad_right] for 2D, etc.

    If this is null the layer uses a default of [0, 0, ..., 0].

    strides

    The stride value for each spatial dimension of the filter.

    If this is null the layer uses a default of [1, 1, ..., 1].

    Methods

    Name Description
    Execute(Tensor[], ExecutionContext)

    Executes the layer using the operations and variables from the ExecutionContext and returns the output tensor.

    If the layer has more than one output, output tensors are saved to variables.

    ToString()

    Returns a string that represents the Layer.

    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)