Backends/SiaNet.Backend.MxNet/NDArrayOps.cs
/// <summary>
/// This operator is DEPRECATED. Apply convolution to input then add a bias.
/// </summary>
/// <param name="data">Input data to the ConvolutionV1Op.</param>
/// <param name="kernel">convolution kernel size: (h, w) or (d, h, w)</param>
/// <param name="num_filter">convolution filter(channel) number</param>
/// <param name="weight">Weight matrix.</param>
/// <param name="bias">Bias parameter.</param>
/// <param name="stride">convolution stride: (h, w) or (d, h, w)</param>
/// <param name="dilate">convolution dilate: (h, w) or (d, h, w)</param>
/// <param name="pad">pad for convolution: (h, w) or (d, h, w)</param>
/// <param name="num_group">Number of group partitions. Equivalent to slicing input into num_group    partitions, apply convolution on each, then concatenate the results</param>
/// <param name="workspace">Maximum tmp workspace allowed for convolution (MB).</param>
/// <param name="no_bias">Whether to disable bias parameter.</param>
/// <param name="cudnn_tune">Whether to pick convolution algo by running performance test.    Leads to higher startup time but may give faster speed. Options are:    'off': no tuning    'limited_workspace': run test and pick the fastest algorithm that doesn't exceed workspace limit.    'fastest': pick the fastest algorithm and ignore workspace limit.    If set to None (default), behavior is determined by environment    variable MXNET_CUDNN_AUTOTUNE_DEFAULT: 0 for off,    1 for limited workspace (default), 2 for fastest.</param>
/// <param name="cudnn_off">Turn off cudnn for this layer.</param>
/// <param name="layout">Set layout for input, output and weight. Empty for    default layout: NCHW for 2d and NCDHW for 3d.</param>
/// <returns>returns new symbol</returns>
This operator is DEPRECATED. Apply convolution to input then add a bias.
This operator is DEPRECATED . Apply convolution to input then add a bias .
public static NDArray ConvolutionV1(NDArray data,
        Shape kernel,
        uint num_filter,
        NDArray weight = null,
        NDArray bias = null,
        Shape stride = null,
        Shape dilate = null,
        Shape pad = null,
        uint num_group = 1,
        ulong workspace = 1024,
        bool no_bias = false,
        ConvolutionV1CudnnTune? cudnn_tune = null,
        bool cudnn_off = false,
        ConvolutionV1Layout? layout = null)
        {
            return new Operator("Convolution_v1")
            .SetParam("kernel", kernel)
            .SetParam("stride", stride)
            .SetParam("dilate", dilate)
            .SetParam("pad", pad)
            .SetParam("num_filter", num_filter)
            .SetParam("num_group", num_group)
            .SetParam("workspace", workspace)
            .SetParam("no_bias", no_bias)
            .SetParam("cudnn_tune", NDUtil.EnumToString<ConvolutionV1CudnnTune>(cudnn_tune, ConvolutionV1CudnnTuneConvert))
            .SetParam("cudnn_off", cudnn_off)
            .SetParam("layout", NDUtil.EnumToString<ConvolutionV1Layout>(layout, ConvolutionV1LayoutConvert))
            .SetInput("data", data)
            .SetInput("weight", weight)
            .SetInput("bias", bias)
            .Invoke();
        }
public static NDArray ConvolutionV1 ( NDArray data , Shape kernel , uint num_filter , NDArray weight = null , NDArray bias = null , Shape stride = null , Shape dilate = null , Shape pad = null , uint num_group = 1 , ulong workspace = 1024 , bool no_bias = false , ConvolutionV1CudnnTune ? cudnn_tune = null , bool cudnn_off = false , ConvolutionV1Layout ? layout = null ) { return new Operator ( " " ) . SetParam ( " " , kernel ) . SetParam ( " " , stride ) . SetParam ( " " , dilate ) . SetParam ( " " , pad ) . SetParam ( " " , num_filter ) . SetParam ( " " , num_group ) . SetParam ( " " , workspace ) . SetParam ( " " , no_bias ) . SetParam ( " " , NDUtil . EnumToString < ConvolutionV1CudnnTune > ( cudnn_tune , ConvolutionV1CudnnTuneConvert ) ) . SetParam ( " " , cudnn_off ) . SetParam ( " " , NDUtil . EnumToString < ConvolutionV1Layout > ( layout , ConvolutionV1LayoutConvert ) ) . SetInput ( " " , data ) . SetInput ( " " , weight ) . SetInput ( " " , bias ) . Invoke ( ) ; }
This operator is DEPRECATED.
This operator is DEPRECATED .
returns new symbol
returns new symbol
data
NDArray
Input data to the ConvolutionV1Op.
Input data to the ConvolutionV1Op .
kernel
Shape
convolution kernel size: (h, w) or (d, h, w)
convolution kernel size : ( h w ) or ( d h w )
num_filter
uint
convolution filter(channel) number
convolution filter ( channel ) number
weight
NDArray
None
bias
NDArray
None
stride
Shape
convolution stride: (h, w) or (d, h, w)
convolution stride : ( h w ) or ( d h w )
dilate
Shape
convolution dilate: (h, w) or (d, h, w)
convolution dilate : ( h w ) or ( d h w )
pad
Shape
pad for convolution: (h, w) or (d, h, w)
pad for convolution : ( h w ) or ( d h w )
num_group
uint
Number of group partitions. Equivalent to slicing input into num_group    partitions, apply convolution on each, then concatenate the results
Number of group partitions . Equivalent to slicing input into num_group partitions apply convolution on each then concatenate the results
workspace
ulong
Maximum tmp workspace allowed for convolution (MB).
Maximum tmp workspace allowed for convolution ( MB ) .
no_bias
bool
Whether to disable bias parameter.
Whether to disable bias parameter .
cudnn_tune
ConvolutionV1CudnnTune?
Whether to pick convolution algo by running performance test.    Leads to higher startup time but may give faster speed. Options are:    'off': no tuning    'limited_workspace': run test and pick the fastest algorithm that doesn't exceed workspace limit.    'fastest': pick the fastest algorithm and ignore workspace limit.    If set to None (default), behavior is determined by environment    variable MXNET_CUDNN_AUTOTUNE_DEFAULT: 0 for off,    1 for limited workspace (default), 2 for fastest.
Whether to pick convolution algo by running performance test . Leads to higher startup time but may give faster speed . Options are : ' off ' : no tuning ' limited_workspace ' : run test and pick the fastest algorithm that doesn ' t exceed workspace limit . ' fastest ' : pick the fastest algorithm and ignore workspace limit . If set to None ( default ) behavior is determined by environment variable MXNET_CUDNN_AUTOTUNE_DEFAULT : 0 for off 1 for limited workspace ( default ) 2 for fastest .
cudnn_off
bool
Turn off cudnn for this layer.
Turn off cudnn for this layer .
layout
ConvolutionV1Layout?
Set layout for input, output and weight. Empty for    default layout: NCHW for 2d and NCDHW for 3d.
Set layout for input output and weight . Empty for default layout : NCHW for 2d and NCDHW for 3d .