// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #pragma once // This file represents the beginning of moving actions out from CNTK.cpp to make them accessible as a library. To be continued... #include "Basics.h" #include "Config.h" #include "CommonMatrix.h" #include "ComputationNetwork.h" // =========================================================================== // implementations of all the commands of CNTK // =========================================================================== #ifndef let #define let const auto #endif using namespace Microsoft::MSR; using namespace Microsoft::MSR::CNTK; // TODO: we should not have this in a header function GetCreateNetworkFn(const ScriptableObjects::IConfigRecord& config); template bool TryGetNetworkFactory(const ConfigRecordType& config, function& createNetworkFn); template function GetNetworkFactory(const ConfigRecordType& config); template ComputationNetworkPtr GetModelFromConfig(const ConfigRecordType& config, const std::wstring& outputNodeNameConfig, std::vector& outputNodeNamesVector); // training (TrainActions.cpp) template void DoTrain(const ConfigRecordType& config); template void DoAdapt(const ConfigParameters& config); template void DoDumpNodes(const ConfigParameters& config); template void DoEdit(const ConfigParameters& config); template void DoBatchNormalizationStat(const ConfigParameters& config); // evaluation (EvalActions.cpp) template void DoEval(const ConfigParameters& config); template void DoCrossValidate(const ConfigParameters& config); template void DoWriteOutput(const ConfigParameters& config); // misc (OtherActions.cpp) template void DoCreateLabelMap(const ConfigParameters& config); template void DoParameterSVD(const ConfigParameters& config); template void DoWriteWordAndClassInfo(const ConfigParameters& config); template void DoTopologyPlot(const ConfigParameters& config); // special purpose (SpecialPurposeActions.cpp) template void DoConvertFromDbn(const ConfigParameters& config); template void DoExportToDbn(const ConfigParameters& config);