예제 #1
0
        public static void Initialize()
        {
            if (_resources != null)
            {
                return;
            }

            var settings = CNTKModelPredictionSettings.FromWebSettings();
            var labels   = LoadLabels(settings.LabelsFilename);
            var model    = LoadModel(settings.ModelFilename);

            _resources = new CNTKModelPredictionResources()
            {
                Settings = settings,
                Labels   = labels,
                Model    = model
            };
        }
예제 #2
0
 public CNTKModelPrediction(CNTKModelPredictionResources _CNTKModelPredictionResources)
 {
     this._CNTKModelPredictionResources = _CNTKModelPredictionResources;
 }