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 }; }
public CNTKModelPrediction(CNTKModelPredictionResources _CNTKModelPredictionResources) { this._CNTKModelPredictionResources = _CNTKModelPredictionResources; }