Example #1
0
        public string getParamsJn()
        {
            string ss = "{\"kernel\":\"" + kernel.ToString() + "\"," +
                        "\"fWidth\":\"" + fWidth.ToString() + "\"," +
                        "\"fHeight\":\"" + fHeight.ToString() + "\"," +
                        "\"padding\":\"" + padding.ToString() + "\"," +
                        "\"stride\":\"" + stride.ToString() + "\"," +
                        "\"dilate\":\"" + dilate.ToString() + "\"," +
                        "\"active\":\"" + act.str() + "\"," +
                        "\"weightInit\":\"" + wini.str() + "\"," +
                        "\"batchNorm\":\"" + bnorm.str() + "\"," +
                        "\"batchNormLr\":\"" + batchNormLr.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"optimizer\":\"" + opt.str() + "\"," +
                        "\"decayMomentDW\":\"" + decayMomentDW.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"decayMomentWGr\":\"" + decayMomentWGr.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"lmbRegular\":\"" + lmbRegular.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"dropOut\":\"" + dropOut.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"mode\":\"" + mode.str() + "\"," +
                        "\"gpuDeviceId\":\"" + gpuDeviceId.ToString() + "\"," +
                        "\"freeze\":\"" + (freeze ? "1" : "0") + "\"," +
                        "\"gpuClearMem\":\"" + (gpuClearMem ? "1" : "0") + "\"" +
                        "}";

            return(ss);
        }
Example #2
0
        public string getParamsJn()
        {
            string ss = "{\"kernel\":\"" + kernel.ToString() + "\"," +
                        "\"pool\":\"" + pool.str() + "\"," +
                        "\"mode\":\"" + mode.str() + "\"," +
                        "\"gpuDeviceId\":\"" + gpuDeviceId.ToString() + "\"," +
                        "\"gpuClearMem\":\"" + (gpuClearMem ? "1" : "0") + "\"" +
                        "}";

            return(ss);
        }
Example #3
0
        public string getParamsJn()
        {
            string ss = "{\"kernel\":\"" + kernel.ToString() + "\"," +
                        "\"active\":\"" + act.str() + "\"," +
                        "\"weightInit\":\"" + wini.str() + "\"," +
                        "\"batchNorm\":\"" + bnorm.str() + "\"," +
                        "\"batchNormLr\":\"" + batchNormLr.ToString() + "\"," +
                        "\"optimizer\":\"" + opt.str() + "\"," +
                        "\"decayMomentDW\":\"" + decayMomentDW.ToString() + "\"," +
                        "\"decayMomentWGr\":\"" + decayMomentWGr.ToString() + "\"," +
                        "\"lmbRegular\":\"" + lmbRegular.ToString() + "\"," +
                        "\"dropOut\":\"" + dropOut.ToString() + "\"," +
                        "\"mode\":\"" + mode.str() + "\"," +
                        "\"gpuDeviceId\":\"" + gpuDeviceId.ToString() + "\"," +
                        "\"freeze\":\"" + (freeze ? "1" : "0") + "\"," +
                        "\"gpuClearMem\":\"" + (gpuClearMem ? "1" : "0") + "\"" +
                        "}";

            return(ss);
        }
Example #4
0
        public string getParamsJn()
        {
            string ss = "{\"units\":\"" + units.ToString() + "\"," +
                        "\"active\":\"" + act.str() + "\"," +
                        "\"weightInit\":\"" + wini.str() + "\"," +
                        "\"batchNorm\":\"" + bnorm.str() + "\"," +
                        "\"batchNormLr\":\"" + batchNormLr.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"optimizer\":\"" + opt.str() + "\"," +
                        "\"decayMomentDW\":\"" + decayMomentDW.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"decayMomentWGr\":\"" + decayMomentWGr.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"lmbRegular\":\"" + lmbRegular.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"dropOut\":\"" + dropOut.ToString("0.000", System.Globalization.CultureInfo.InvariantCulture) + "\"," +
                        "\"mode\":\"" + mode.str() + "\"," +
                        "\"gpuDeviceId\":\"" + gpuDeviceId.ToString() + "\"," +
                        "\"freeze\":\"" + (freeze ? "1" : "0") + "\"," +
                        "\"useBias\":\"" + (useBias ? "1" : "0") + "\"," +
                        "\"gpuClearMem\":\"" + (gpuClearMem ? "1" : "0") + "\"" +
                        "}";

            return(ss);
        }