public void SetParameters(CudnnFilterDescriptorParameters param)
        {
            if (param == null)
                throw new ArgumentNullException("param");

            Contract.EndContractBlock();

            CudnnContext.Invoke(() => CudnnNativeMethods.cudnnSetFilterDescriptor(
                                this.Handle, param.Type,
                                param.Output, param.Input, param.Height, param.Width));

            this.descriptorParams = param;
        }
Пример #2
0
 public static CudnnFilterDescriptor CreateFilter(CudnnFilterDescriptorParameters parameters)
 {
     var filter = CreateFilter();
     filter.SetParameters(parameters);
     return filter;
 }