Esempio n. 1
0
        public static void SetAllBnRunningStatsWindowSizes(LossMulticlassLog net, uint newWindowSize)
        {
            if (net == null)
            {
                throw new ArgumentNullException(nameof(net));
            }

            net.ThrowIfDisposed();

            var ret = NativeMethods.set_all_bn_running_stats_window_sizes_loss_multiclass_log(net.NativePtr,
                                                                                              net.NetworkType,
                                                                                              newWindowSize);

            if (ret == NativeMethods.ErrorType.DnnNotSupportNetworkType)
            {
                throw new NotSupportNetworkTypeException(net.NetworkType);
            }
        }