Beispiel #1
0
        public void SaveOptimizerStates(string fname)
        {
            if (!OptimizerInitialized)
            {
                throw new Exception("Optimizer not initialized");
            }

            if (_update_on_kvstore.HasValue && _update_on_kvstore.Value)
            {
                _kvstore.SaveOptimizerStates(fname);
            }
            else
            {
                File.WriteAllText(fname, _updater.GetStates());
            }
        }