Пример #1
0
        /// <summary>
        /// Factory for the ModelParamLoader : Creates a ModelParamLoader and runs the checks
        /// on it.
        /// </summary>
        /// <param name="engine"> The InferenceEngine we get the parameters and the checks from
        /// </param>
        /// <param name="brainParameters"> The BrainParamters that are used verify the
        /// compatibility with the InferenceEngine</param>
        /// <returns></returns>
        public static ModelParamLoader GetLoaderAndCheck(TFSharpInferenceEngine engine,
                                                         BrainParameters brainParameters)
        {
            ModelParamLoader modelParamLoader = new ModelParamLoader(engine, brainParameters);

            modelParamLoader.GenerateChecks();
            return(modelParamLoader);
        }
Пример #2
0
 private ModelParamLoader(TFSharpInferenceEngine engine, BrainParameters brainParameters)
 {
     _engine          = engine;
     _brainParameters = brainParameters;
 }